KirillOsenkov / MSBuildStructuredLog

A logger for MSBuild that records a structured representation of executed targets, tasks, property and item values.
MIT License
1.41k stars 188 forks source link

Disable FIPS cryptographic exceptions #702

Closed hymccord closed 10 months ago

hymccord commented 10 months ago

In .NET Framework 4.7.2 and earlier versions, managed cryptographic provider classes such as System.Security.Cryptography.MD5 throw a System.Security.Cryptography.CryptographicException when the system cryptographic libraries are configured in FIPS mode.

The issue is encountered in the log viewer when needing to write content to a temporary file path e.g. when preprocessing a project node to view the full project XML.

The fix taken here to to turn off the exception throwing behavior via an app runtime switch.

Closes: #701