gpt4 book ai didi

wpf - 未知的构建错误 "This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms"

转载 作者:行者123 更新时间:2023-12-04 17:19:52 25 4
gpt4 key购买 nike

所以我启用了这个组策略,当我第一次尝试编译我的解决方案时,我收到了这个错误。有趣的是,我只在一个地方使用加密函数,但我看到的是我所有的 Silverlight ResourceDictionary 文件和 WPF userControl 文件。其他一切似乎都编译得很好。

为什么我只在 xaml 文件上看到错误,而我对加密不做任何处理?我知道我可以禁用 FIPS 组策略,但我确实想支持它。知道为什么特定的 XAML 文件会在编译期间抛出此错误吗?

最佳答案

我知道我玩游戏有点晚了,但我最近遇到了这个问题,也想出了一个解决方案。由于@mdutra above 所述的原因,这就是为什么它不起作用但有趣的是,Visual Studio 2010 和 2012 有两个不同的“修复”。
Microsoft Connect 帖子(不再存在)指出:

Visual Studio 2012 now builds C# projects in a separate process that runs msbuild. The entry you added to devenv.exe.config (that worked for VS 2010) won't be seen by this process. You should add <enforceFIPSPolicy enabled="false"/> directly above the </runtime> tag in the msbuild.exe.config file; typically found at C:\Windows\Microsoft.Net\Framework\v4.0.30319\msbuild.exe.config.


我还将它添加到 C:\Windows\Microsoft.Net\Framework64\v4.0.30319\msbuild.exe.config文件也是如此,因为我不知道我使用的是哪个 MSBuild。

关于wpf - 未知的构建错误 "This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10178655/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com