Code Contracts for .NETFree
Code Contracts are static library methods used from any .NET program to specify the code’s behavior. Runtime checking and static checking tools are both provided for taking advantage of contracts.
Sign in to write a review
Any update on VS2015 love? How about getting out-of-the-box support in VS. Contracts have been in the BCL for awhile.
Code Contracts is an excellent design and programming device but, as many already said, it is very frustrating that there are no signs for updating the tool for Visual Studio 2015. Can someone please break the silence and let us know what the plans are. We have existing projects relying on it - shall we rewrite our code? Please, someone say something.
This is a really good thing to have, and I was a fan of the entire idea of static analysis and especially the extreme advantages of having Code Contracts that you could actually manage constructively (such as keeping all the heaviest checks on a test version, while keeping only public surface ones for a stable environment, etc.)
My team recently adopted code contracts. It's a fantastic tool that's already helped to catch some validation we would have missed otherwise. There's a learning curve for some devs who can't easily adapt to the contract way of thinking, but it's absolutely worth the curve and the time to bring people up to speed.
Me too. This actually prevent us moving to VS2015....
good tool!!! but i wish code contracts for VS 2015 xd
Guys, these extensions are appreciated more than you'll ever know. YOU are unsung heroes. This pattern will no doubt grow across all aspects in computing. You have allowed us to prevent* bugs at code-time, *before* unit testing...
Please, please, please make a version for Visual Studio 2015!
Great tool. Please let us know when to expect a V2015 version.
Great but please update this for Visual Studio 2015 as soon you can.
There's a NuGet package of standalone version of CodeContracts for MSBuild (could be used for CI such as Azure Kudu) - http://www.nuge
This is a great project but I'm affected by the installer issues, too - after all four or five installations since the first time I installed CodeContracts I had to clean up the
hmmm I saw the problems with installation on one of my machine too. Updating to VS2013 v4 solved the issue.
Installer frequently breaks between versions. You'd think "Research in Software Engineering" could figure out how to build a working installer. It doesn't build a lot of confidence, really. Its benefits aren't worth my struggles in updating it or dealing with how it occasionally breaks VS.
Full of great promise. Unfortunately it doesn't deliver. Static code analysis does absolutely nothing in VS2013 and the documentation is so inconsistent with the UI that it's impossible to work out where the problem may lie.
Same problem. VS2013 is completely unusable even after uninstalling Code Contracts again. All kinds of stock VS functionality (like the Solution Explorer) doesn't load anymore.
My VS2013 don't start after update with V 1.7.10908.11 and devenv /resetsettings don't works also.
Please, add support for VS 14