Skip to content

Commit ecc349e

Browse files
authored
Apply suggestions from code review
Co-authored-by: Youssef Fahmy <youssefvictor00@gmail.com>
1 parent 253d1e8 commit ecc349e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Microsoft.OpenApi.YamlReader/Microsoft.OpenApi.YamlReader.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<PackageReference Include="Microsoft.VisualStudio.Threading.Analyzers" Version="18.7.23" PrivateAssets="all" />
3434

3535
<PackageReference Include="SharpYaml" Version="2.1.5" />
36-
<PackageReference Include="System.Text.Json" Version="[8.0.5,)" Condition="'$(TargetFramework)' != 'net8.0'" />
36+
<PackageReference Include="System.Text.Json" Version="[8.0.5,)" Condition="!$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))" />
3737
</ItemGroup>
3838

3939
<ItemGroup>

src/Microsoft.OpenApi/Microsoft.OpenApi.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<PackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" Version="5.6.0" PrivateAssets="all" />
2828

2929
<!-- 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'" />
30+
<PackageReference Include="System.Text.Json" Version="[8.0.5,)" Condition="!$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))" />
3131
</ItemGroup>
3232

3333
<ItemGroup>

0 commit comments

Comments
 (0)