Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual Studio 2019 Support #20

Open
IgorWolbers opened this issue May 5, 2019 · 3 comments
Open

Visual Studio 2019 Support #20

IgorWolbers opened this issue May 5, 2019 · 3 comments

Comments

@IgorWolbers
Copy link

Do you have any plans to support Visual Studio 2019? VS2019 projects that reference the latest version of this NuGet package will not load, they produce an error in the Output window:

C:\solution-path\project-folder\project-name.csproj : error  : The imported project "C:\solution-path\packages\CodeContracts.MSBuild.1.12.0\Contracts\MsBuild\vCurrent\Microsoft.CodeContracts.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.  C:\solution-path\packages\CodeContracts.MSBuild.1.12.0\build\CodeContracts.MSBuild.targets

If there is a "quick" work around in the mean time I would appreciate that as well.

Thank you for making this package available, it has been very useful!

@Dronar
Copy link

Dronar commented May 8, 2019

A quick fix is to simply copy the "Contracts\MsBuild\v15" folder to "Contracts\MsBuild\vCurrent".
This should fix the relevant problem.

@rudidlo
Copy link

rudidlo commented May 8, 2019

Yes, it will fix static checker problem, but Code Contracts are not supported since VS 2015

@erdouzun
Copy link

Thanks @Dronar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants