Skip to content

Instantly share code, notes, and snippets.

@rolfbjarne
Last active July 10, 2020 11:30
Show Gist options
  • Save rolfbjarne/86fa3d32923fe7198549534ca00a850d to your computer and use it in GitHub Desktop.
Save rolfbjarne/86fa3d32923fe7198549534ca00a850d to your computer and use it in GitHub Desktop.
$ cat test.proj
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="A">
<Error Text="A" />
</Target>
<Target Name="B" DependsOnTargets="A" Condition="false">
<Warning Text="B" />
</Target>
<Target Name="Build" DependsOnTargets="B">
<Warning Text="Build" />
</Target>
</Project>
$ $ msbuild test.proj /v:quiet /nologo
/Users/rolf/test/test.proj(10,3): warning : Build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment