Microsoft Code Contracts without Visual Studio

后端 未结 2 1013
无人共我
无人共我 2021-02-04 14:15

This stack overflow question:

Microsoft Code Contracts and CI build server

asks how to get code contracts working on a build server without installing Visual Stu

2条回答
  •  暖寄归人
    2021-02-04 14:44

    Here's my solution. It's based on issue #368 and stackoverflow:Microsoft Code Contracts without Visual Studio

    1. Add DotNet.Contracts from nuget;
    2. Add code below to your project file:
    
      $([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)..\packages\DotNet.Contracts.1.10.20606.1\'))`
    
    
    

提交回复
热议问题