我在解决方案级别的 Package.props 文件中有以下条目:
<ItemGroup Label="My Label" Condition=" '$(SHFBSchemaVersion)' == '' ">
<PackageReference Include="StyleCop.Analyzers">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>
我应该如何编辑它,以便为某些项目排除 StyleCop 的引用?就像是:
<ItemGroup Label="My Label" Condition=" '$(SHFBSchemaVersion)' == '' " Exclude="MyAwsomeProject">
所以我希望“MyAwsomeProject”不会引用 StyleCop。