What is the best alternative for Code Contracts in Visual Studio 2015?

。_饼干妹妹 提交于 2019-12-03 10:54:45

They're working on it: https://github.com/Microsoft/CodeContracts/pull/36

If you cannot wait, there are a few things that you can do to fix this: https://github.com/Microsoft/CodeContracts/issues/18

"The contract editor extensions now have a single VSIX package for all of the Visual Studio versions includign VS2015!"

https://visualstudiogallery.msdn.microsoft.com/1ec7db13-3363-46c9-851f-1ce455f66970

I have installed CodeContracts v.1.10.10126.2-rc1 and it is working (and stable) with Visual Studio 2015.

This version of CodeContracts is the first major community-driven release of the DotNet CodeContracts. This release addresses a lot of pending issues with installer, new IL patterns introduced by Roslyn Csc compiler, etc..

NuGet package is located here: https://www.nuget.org/packages/DotNet.Contracts/1.10.10126.4

Prior to this version of CodeContracts, I had to turn contract checking off so I could get my applications to run in VS2015.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!