Skip to content

Commit 5d77734

Browse files
authored
Simplify Microsoft.OpenApi package references
1 parent e0d5e9d commit 5d77734

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

src/Microsoft.OpenApi/Microsoft.OpenApi.csproj

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,10 @@
2424
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
2525
</PropertyGroup>
2626
<ItemGroup>
27-
<PackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" Version="5.6.0">
28-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
29-
<PrivateAssets>all</PrivateAssets>
30-
</PackageReference>
31-
<PackageReference Include="System.Text.Json" Version="[8.0.5,)" />
32-
<NuGetAuditSuppress Include="https://github.com/advisories/GHSA-hh2w-p6rv-4g7w" />
33-
<NuGetAuditSuppress Include="https://github.com/advisories/GHSA-8g4q-xg66-9fp4" />
27+
<PackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" Version="5.6.0" PrivateAssets="all" />
28+
29+
<!-- We don't need the package reference under .NET 8. We get STJ from the BCL. -->
30+
<PackageReference Include="System.Text.Json" Version="[8.0.5,)" Condition="'$(TargetFramework)' != 'net8.0'" />
3431
</ItemGroup>
3532

3633
<ItemGroup>

0 commit comments

Comments
 (0)