Coder Social home page Coder Social logo

Comments (6)

NameOfTheDragon avatar NameOfTheDragon commented on May 24, 2024 5

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.

yaakov-h avatar yaakov-h commented on May 24, 2024 4

Don’t.

from codecontracts.

Ithalica avatar Ithalica commented on May 24, 2024 2

Same. Any progress on this?

from codecontracts.

SlyckLizzie avatar SlyckLizzie commented on May 24, 2024

Same thing here. Does not work with VS 2017.

from codecontracts.

baSSiLL avatar baSSiLL commented on May 24, 2024

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.

Igorbek avatar Igorbek commented on May 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.