Skip to content

Commit f60ae93

Browse files
authored
Add System.Text.Json/8.0.3 (#991)
While we already have STJ/8.0.4 in SBRP, we can't use that yet in msbuild components that target .NET Framework as updated binding redirects are necessary for that. So meanwhile we need to target a lower version, 8.0.3.
1 parent 97ffbae commit f60ae93

File tree

7 files changed

+8720
-0
lines changed

7 files changed

+8720
-0
lines changed

eng/Build.props

+2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
<DependencyPackageProjects Include="$(RepoRoot)src\referencePackages\src\**\System.Formats.Asn1.6.0.1.csproj" />
3636
<DependencyPackageProjects Include="$(RepoRoot)src\referencePackages\src\**\System.Security.Cryptography.Pks.6.0.1.csproj" />
3737
<DependencyPackageProjects Include="$(RepoRoot)src\referencePackages\src\**\System.Security.Cryptography.Pks.6.0.4.csproj" />
38+
39+
<DependencyPackageProjects Include="$(RepoRoot)src\referencePackages\src\**\System.Text.Json.8.0.3.csproj" />
3840
</ItemGroup>
3941

4042
<ItemGroup Condition="'$(BuildDependencyPackageProjects)' == 'true'">
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFrameworks>net6.0;net7.0;net8.0;netstandard2.0</TargetFrameworks>
5+
<AssemblyName>System.Text.Json</AssemblyName>
6+
<StrongNameKeyId>Open</StrongNameKeyId>
7+
</PropertyGroup>
8+
9+
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
10+
<PackageReference Include="System.Text.Encodings.Web" Version="8.0.0" />
11+
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="6.0.0" />
12+
</ItemGroup>
13+
14+
<ItemGroup Condition="'$(TargetFramework)' == 'net7.0'">
15+
<PackageReference Include="System.Text.Encodings.Web" Version="8.0.0" />
16+
</ItemGroup>
17+
18+
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
19+
<PackageReference Include="System.Text.Encodings.Web" Version="8.0.0" />
20+
</ItemGroup>
21+
22+
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
23+
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="8.0.0" />
24+
<PackageReference Include="System.Text.Encodings.Web" Version="8.0.0" />
25+
<PackageReference Include="System.Buffers" Version="4.5.1" />
26+
<PackageReference Include="System.Memory" Version="4.5.5" />
27+
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="6.0.0" />
28+
<PackageReference Include="System.Threading.Tasks.Extensions" Version="4.5.4" />
29+
</ItemGroup>
30+
31+
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'">
32+
<Compile Include="$(CommonSrc)IsExternalInit.cs" />
33+
</ItemGroup>
34+
35+
</Project>

0 commit comments

Comments
 (0)