Sac*_*nth 4 msbuild visual-studio visual-studio-2012
我在我的Visual Studio项目中有这个
<Target Name="BeforeBuild">
<Message Text="Compiling TypeScript files" />
<Message Text="Executing tsc$(TypeScriptSourceMap) @(TypeScriptCompile ->'"%(fullpath)"', ' ')" />
<Exec Command="tsc$(TypeScriptSourceMap) @(TypeScriptCompile ->'"%(fullpath)"', ' ')" IgnoreExitCode="true" />
</Target>
Run Code Online (Sandbox Code Playgroud)
<Target Name="BeforeBuild"></Target>如果配置是Debug并且平台是AnyCPU,我想执行其中的内容.这是可能的,如果是这样,它是如何完成的?
请尝试以下方法
<Target Name="BeforeBuild" Condition="'$(Configuration)' == 'Debug' And '$(Platform)' == 'AnyCPU'">
Run Code Online (Sandbox Code Playgroud)
稍微更花哨的版本
<Target Name="BeforeBuild" Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
249 次 |
| 最近记录: |