标签: c# .net-core
我希望在.csproj中找到一个条件,我会检测到buildType。是否有财产可以提供这些信息?
.csproj
例如,我想要检测何时从dotnet build或dotnet publish
dotnet build
dotnet publish
<Target Name="DebugRunWebpack" BeforeTargets="Build" Condition="'$(BuildType)' != 'publish'"> ... </Target>