Comments (6)
I find it impossible to take a dependency on CodeContracts unless there is at the very minimum a roadmap for supporting VS2017 and future versions. This is far and away the best contract technology out there and I really want to be able to use it, but I can't have my entire development tool chain held back by it.
from codecontracts.
Don’t.
from codecontracts.
Same. Any progress on this?
from codecontracts.
Same thing here. Does not work with VS 2017.
from codecontracts.
Unfortunately, Code Contracts still lack "official" support for VS 2017, even the latest sources.
However, you can get a limited support for VS 2017 and target runtimes v4.7.x by using CodeContracts.MSBuild Nuget package instead of Code Contracts installer.
https://www.nuget.org/packages/CodeContracts.MSBuild/
Limitations of the package:
- There's still no extension for VS 2017 adding Code Contracts pane into project properties editor. Therefore you need to add/edit project settings for Code Contracts manually in the project file.
- The package ships with the latest stable release of Code Contracts (v1.9.10714.3). So some bugs which have been fixed in sources and release candidates for v1.10 (https://github.com/Microsoft/CodeContracts/releases) are still there. For instance, be careful using closures in constructors as this may lead to NullReferenceException while checking preconditions (#191).
from codecontracts.
A new version 1.11-alpha of CodeContracts.MSBuild
has been released with updated binaries (from the latest RC). It will be in alpha for 2 weeks. Enjoy!
from codecontracts.
Related Issues (20)
- Rewriter produces incorrect debug information for async methods in PDB file HOT 1
- Removing Code Contracts from a project when upgrading to VS2017 HOT 1
- Rosalyn Code Analyzer for Code Contracts Usage HOT 4
- .NET Framework 4.7 BCL Contracts
- ccrewrite aborted due to metadata errors (Xamarin or VS2017 15.2 related?)
- StackOverflowException in cccheck.exe
- IDictionary contracts and boxing HOT 2
- Postcondition missing from StringBuilder.AppendFormat(IFormatProvider, string, object)
- How to enable "perform runtime contract checking" in Visual Studio 2017? HOT 19
- COMException (0x80004005)
- Build with CodeContracts fails with dotnet build
- Document for the implementation/source code?
- Another NullReferenceException with closure in constructor
- VS2017 path to sn.exe is wrong
- Reading assembly 'Unity.Abstractions' generate System.OutOfMemoryException HOT 1
- BadImageFormatException with enabled runtime checking
- Rewrite tool introduce bugs in local functions
- Preconditions with non-interger decimals are broken
- Enable contracts in VS Community 2019
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codecontracts.