Search code examples
c#wpffips

Can I use WPF without disabling FIPS compliance?


I've seen lots of complaints about build issues (specifically with WPF) with the error:

This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms.

Unfortunately, I cannot work-around or disable FIPS compliance on my machine. How can I use WPF without disabling FIPS compliance?


Solution

  • Ok I figured this out. Right before </runtime>, Add the line:

    <enforceFIPSPolicy enabled=“false” />
    

    in file C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/MSBuild/15.0/Bin/msbuild.exe.config

    Adding this to other places will not assist, as this is where WPF project’s MSBuild configurations now live. It has moved around on each version of Microsoft Visual Studio