I have a large C# .NET project which I must turn into FIPS compliant, so I need to find and change every piece of code that calls any non-compliant API.
If I enable FipsAlgorithmPolicy in the registry I start getting runtime exceptions like "This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms."
which is fine but validating the entire code base by testing is both time-consuming and unreliable.
Is there a way to make Visual Studio 2017/2019 issue an error or warning at compile time for each non-complaint API call?