зеркало из https://github.com/microsoft/vstest.git
21 строка
1.1 KiB
XML
21 строка
1.1 KiB
XML
<Project>
|
|
<!--
|
|
Include PublicApi analyzers into all projects that are in our src directory.
|
|
Use relative path between the project and the root to avoid including the analyzer if the path above the root contains 'src' (e.g. C:\src\vstest).
|
|
-->
|
|
<ItemGroup Condition=" '$(IsSourceFile)' == 'true' and '$(DotNetBuildSourceOnly)' != 'true' ">
|
|
<PackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" Version="$(MicrosoftCodeAnalysisPublicApiAnalyzersVersion)">
|
|
<PrivateAssets>all</PrivateAssets>
|
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
</PackageReference>
|
|
</ItemGroup>
|
|
|
|
<!-- Add BannedApiAnalyzer if opt-in -->
|
|
<ItemGroup Condition=" '$(UseBannedApiAnalyzers)' == 'true' and '$(DotNetBuildSourceOnly)' != 'true' ">
|
|
<PackageReference Include="Microsoft.CodeAnalysis.BannedApiAnalyzers" Version="$(MicrosoftCodeAnalysisBannedApiAnalyzersVersion)">
|
|
<PrivateAssets>all</PrivateAssets>
|
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
</PackageReference>
|
|
</ItemGroup>
|
|
</Project>
|