Uh oh!
There was an error while loading. Please reload this page.
Add MSBuild targets for VS2017 - #482
Conversation
Cedd Burge (ceddlyburge)
commented
Apr 27, 2017
Hi there Is this PR released? I would like my Contracts to start throwing exceptions so that my tests can pass in VS 2017, which I think this does. I'm not too worried about static analysis and suchlike. It might be worth telling Microsoft that this is stopping me buying VS 2017 at the moment, to see if they can offer any help. Cheers Cedd |
Yaakov (yaakov-h)
commented
Apr 28, 2017
I've been using https://github.com/WiseTechGlobal/CodeContracts/tree/wtg/rel/v1.10.20308.4 (which includes this PR) for over a month and it's quite stable. A few things aren't working in VS2017 including the properties pane, code snippets and background static analysis, but the rest is working just fine, including the rewriter. You can compile it yourself, or when I next get into the office I can upload a nupkg from that fork. |
Cedd Burge (ceddlyburge)
commented
Apr 28, 2017
Thanks Yaakov. |
Artem K (artkpv)
commented
Aug 4, 2017
Hi, thanks for tips! Is there way to install package into VS2017 project so that CC will be used at minimum (replacing Contract.Requires/Assert/..) ? I've tried https://github.com/WiseTechGlobal/CodeContracts . But it fails with: |
Yaakov (yaakov-h)
commented
Aug 5, 2017
Sounds like you have a corrupted zip file. |
Yaakov (@yaakov-h) Update. This package seems to work (as per generated IL code) but I'm not sure about it (can we trust it?). |
This PR adds MSBuild targets for MSBuild 15.0 (Visual Studio 2017).
It also uses the .NET 4.6 Contract BCLs when targeting .NET 4.6.2.
I haven't done anything on the IDE integration side, partly because Visual Studio 2017 has moved a whole lot of cheeses and it's not a simple case of incrementing "14" to "15" and calling it a day.