platform-compat icon indicating copy to clipboard operation
platform-compat copied to clipboard

Warn when using System.Diagnostics.Contracts outside of .NET Framework

Open yaakov-h opened this issue 7 years ago • 2 comments

See https://github.com/dotnet/corefx/issues/24681

Can we make this happen?

yaakov-h avatar Oct 20 '17 01:10 yaakov-h

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."

OliaG avatar Jan 12 '18 01:01 OliaG

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.

OliaG avatar Jan 12 '18 01:01 OliaG