Move to stable Microsoft.CodeAnalysis.PublicApiAnalyzers version (#25662)
This commit is contained in:
parent
2c1f1f6684
commit
e02820f77c
|
|
@ -225,7 +225,7 @@
|
||||||
<MicrosoftCodeAnalysisCommonPackageVersion>3.7.0</MicrosoftCodeAnalysisCommonPackageVersion>
|
<MicrosoftCodeAnalysisCommonPackageVersion>3.7.0</MicrosoftCodeAnalysisCommonPackageVersion>
|
||||||
<MicrosoftCodeAnalysisCSharpPackageVersion>3.7.0</MicrosoftCodeAnalysisCSharpPackageVersion>
|
<MicrosoftCodeAnalysisCSharpPackageVersion>3.7.0</MicrosoftCodeAnalysisCSharpPackageVersion>
|
||||||
<MicrosoftCodeAnalysisCSharpWorkspacesPackageVersion>3.7.0</MicrosoftCodeAnalysisCSharpWorkspacesPackageVersion>
|
<MicrosoftCodeAnalysisCSharpWorkspacesPackageVersion>3.7.0</MicrosoftCodeAnalysisCSharpWorkspacesPackageVersion>
|
||||||
<MicrosoftCodeAnalysisPublicApiAnalyzersPackageVersion>3.3.0-beta2.final</MicrosoftCodeAnalysisPublicApiAnalyzersPackageVersion>
|
<MicrosoftCodeAnalysisPublicApiAnalyzersPackageVersion>3.3.0</MicrosoftCodeAnalysisPublicApiAnalyzersPackageVersion>
|
||||||
<MicrosoftCodeAnalysisFxCopAnalyzersPackageVersion>3.0.0</MicrosoftCodeAnalysisFxCopAnalyzersPackageVersion>
|
<MicrosoftCodeAnalysisFxCopAnalyzersPackageVersion>3.0.0</MicrosoftCodeAnalysisFxCopAnalyzersPackageVersion>
|
||||||
<MicrosoftCssParserPackageVersion>1.0.0-20200708.1</MicrosoftCssParserPackageVersion>
|
<MicrosoftCssParserPackageVersion>1.0.0-20200708.1</MicrosoftCssParserPackageVersion>
|
||||||
<MicrosoftIdentityModelClientsActiveDirectoryPackageVersion>3.19.8</MicrosoftIdentityModelClientsActiveDirectoryPackageVersion>
|
<MicrosoftIdentityModelClientsActiveDirectoryPackageVersion>3.19.8</MicrosoftIdentityModelClientsActiveDirectoryPackageVersion>
|
||||||
|
|
|
||||||
|
|
@ -14,21 +14,21 @@
|
||||||
<!-- Public members should not use oblivious types. Not done with all nullable annotations. -->
|
<!-- Public members should not use oblivious types. Not done with all nullable annotations. -->
|
||||||
<NoWarn>$(NoWarn);RS0041</NoWarn>
|
<NoWarn>$(NoWarn);RS0041</NoWarn>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup Condition=" '$(IsImplementationProject)' == 'true' AND
|
|
||||||
|
<ItemGroup Condition=" Exists('$(MSBuildProjectDirectory)\PublicAPI.*.txt') AND
|
||||||
|
'$(IsImplementationProject)' == 'true' AND
|
||||||
'$(DotNetBuildFromSource)' != 'true' AND
|
'$(DotNetBuildFromSource)' != 'true' AND
|
||||||
! $(RepoRelativeProjectDir.Contains('Tools')) ">
|
! $(RepoRelativeProjectDir.Contains('Tools')) ">
|
||||||
<!-- Package does nothing in projects lacking PublicAPI.Shipped.txt or PublicAPI.Unshipped.txt files. -->
|
|
||||||
<Reference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" ExcludeAssets="Compile" PrivateAssets="All" />
|
<Reference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" ExcludeAssets="Compile" PrivateAssets="All" />
|
||||||
|
|
||||||
<AdditionalFiles Include="PublicAPI.Shipped.txt"
|
|
||||||
Condition=" Exists('$(MSBuildProjectDirectory)\PublicAPI.Shipped.txt') " />
|
|
||||||
<AdditionalFiles Include="PublicAPI.Unshipped.txt"
|
|
||||||
Condition=" Exists('$(MSBuildProjectDirectory)\PublicAPI.Unshipped.txt') " />
|
|
||||||
<AdditionalFiles Include="PublicAPI.Shipped.txt"
|
|
||||||
Condition=" Exists('$(MSBuildProjectDirectory)\$(_TFMDirectory)\PublicAPI.Shipped.txt') " />
|
|
||||||
<AdditionalFiles Include="PublicAPI.Unshipped.txt"
|
|
||||||
Condition=" Exists('$(MSBuildProjectDirectory)\$(_TFMDirectory)\PublicAPI.Unshipped.txt') " />
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<Target Name="_CheckIgnoredPublicApiFiles"
|
||||||
|
BeforeTargets="Build;Restore"
|
||||||
|
Condition=" Exists('$(MSBuildProjectDirectory)\PublicAPI.*.txt') AND
|
||||||
|
!('$(IsImplementationProject)' == 'true' AND
|
||||||
|
'$(DotNetBuildFromSource)' != 'true' AND
|
||||||
|
! $(RepoRelativeProjectDir.Contains('Tools'))) ">
|
||||||
|
<Warning Text="Public API baseline files ignored." />
|
||||||
|
</Target>
|
||||||
|
|
||||||
<Target Name="GetCustomAssemblyAttributes"
|
<Target Name="GetCustomAssemblyAttributes"
|
||||||
BeforeTargets="GetAssemblyAttributes"
|
BeforeTargets="GetAssemblyAttributes"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue