Visual Studio 构建错误 "This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms"

Visual Studio build error "This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms"

我正在尝试构建我的 visual studio 项目,但我的 XAML 文件出现以下错误:

此实现不是 Windows 平台 FIPS 验证加密算法的一部分

我在网上搜索并更改了

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Lsa\FipsAlgorithmPolicy

禁用注册表项。但是我仍然得到同样的错误。

有什么想法吗?

我是这样解决问题的:

  1. 删除 HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Lsa\FipsAlgorithmPolicy 键(文件夹)
  2. 重启
  3. 将 HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Lsa\fipsalgorithmpolicy 设置为 0
  4. 将HKEY_LOCAL_MACHINE\System\ControlSet001\Control\Lsa\fipsalgorithmpolicy设置为0
  5. 将 HKEY_LOCAL_MACHINE\System\ControlSet002\Control\Lsa\fipsalgorithmpolicy 设置为 0
  6. 重启