-
StackOverflow 文档
-
msbuild 教程
-
msbuild 入门
-
创建自定义 MSBuild 目标
<PropertyGroup>
<!-- Definition of a Property named "TestCondition". A PropertyGroup may also be placed inside a Target. -->
<TestCondition>True</TestCondition>
</PropertyGroup>
<!-- This Target will run after the "Clean" Target, subject to a Condition. -->
<Target Name="SpecificTarget" AfterTargets="Clean" Condition=" '$(TestCondition)' == 'True' ">
<!-- Displaying a custom message -->
<Message Text="Here is my Specific Target" Importance="Low" />
<!-- Here come your specific code. -->
</Target>