我希望msbuild仅在不是某个文件(即bla.csproj)时才包含软件包。与下面的行类似。正确的语法是什么?
<label class="threeLabel">
<input type="checkbox" id="chkBusinessActivityStore" name= "Business" class="validate-reqchk-byname label: 'Business Activity'" > " Store"
</label>
<label class="threeLabel">
<input type="checkbox" id="chkBusinessActivityCoffeeShop" name= "Business" class="validate-reqchk-byname label: 'Business Activity'" > " Coffee Shop"
</label>
<label class="threeLabel">
<input type="checkbox" id="chkBusinessActivityBar" name= "Business" class="validate-reqchk-byname label: 'Business Activity'" > " Bar"
</label>
答案 0 :(得分:0)
好吧,我想我已经解决了:
<PackageReference Include="StyleCop.Analyzers" Version="1.0.0" PrivateAssets="All" Condition="'$(MSBuildProjectName)' != 'bla'" />