如何在运行时停止运行 .csproj 文件中<Exec>
标签中的命令?我可以停止使用整个部分吗?<Target>
dotnet publish --no-build ...
<Target>
样本:
<Target Name="BuildSpa" BeforeTargets="Build" AfterTargets="ComputeFilesToPublish" Condition="'$(Configuration.ToUpper())' == 'RELEASE'">
<Exec WorkingDirectory="$(SpaRoot)" Command="npm install" />
<Exec WorkingDirectory="$(SpaRoot)" Command="npm run build" />
</Target>