Skip to content

Commit

Permalink
Fix: microsoft#495 code contracts build within dotnet
Browse files Browse the repository at this point in the history
Disable sn.exe in VS 2017 code contracts targets, to allow code contracts to build within "dotnet build" or "dotnet test".

.NET core does not support sn.exe nor `GetFrameworkSdkPath`
  • Loading branch information
John Crim committed Sep 25, 2017
1 parent 05bc869 commit d4d73af
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,10 @@
</ItemGroup>
</Target>

<!-- sn.exe does not exist in .NET Core, so don't run this target in .NET Core -->
<Target
Name="CodeContractReSign"
Condition="'$(DelaySign)' != 'true'"
Condition="'$(DelaySign)' != 'true' and '$(UsingMicrosoftNETSdk)' != 'true'"
>
<GetFrameworkSdkPath>
<Output
Expand Down

0 comments on commit d4d73af

Please sign in to comment.