platform-compat
platform-compat copied to clipboard
Warn when using System.Diagnostics.Contracts outside of .NET Framework
See https://github.com/dotnet/corefx/issues/24681
Can we make this happen?
From Wes Haggard email: "The APIs are present in .NET Core but they aren’t very useful without the rewriting tools. So people can annotate their APIs but someone would need to write a tool to actually make them able to catch contract violations.
So I would say they aren’t really supported. Even on .NET Framework, the support isn’t really where it needs to be as no one is maintaining the rewriter tool. We stopped annotating the framework itself and running the rewriter on our debug builds because no one was maintaining it any longer and the value wasn’t worth the pain."
After #73 is done we should provide separate warning caption and description for System.Diagnostics.Contracts according to Wes Haggard email in the comment above.