问题描述
您能否在蛋糕脚本中获取由 MSBuild 设置的属性?
我目前有一个在编译后运行的目标,以指示它是否已运行,或者是否是增量构建。
我想在我的蛋糕构建的其余部分中检测是否发生了增量构建。
我目前在我的 MSBuild 上使用的目标如下:
<!-- Defines Targets that should be run after Compile,but skipped if Compile doesn't take place -->
<PropertyGroup>
<TargetsTriggeredByCompilation>
$(TargetsTriggeredByCompilation);
EnablePostBuild
</TargetsTriggeredByCompilation>
</PropertyGroup>
<Target Name="EnablePostBuild">
<!-- Disable post build actions -->
<PropertyGroup>
<SkipPostBuildActions>false</SkipPostBuildActions>
</PropertyGroup>
</Target>
如果我按如下方式在 Cake 中触发构建:
var buildSettings = new MSBuildSettings()
.WithProperty("SkipPostBuildActions","true")
MSBuild("./src/Application.sln",buildSettings );
var SkipPostBuildActionsVal = buildSettings??
我可以在 MSBuild 步骤之后获取 SkipPostBuildActions 的值吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)