File tree Expand file tree Collapse file tree 3 files changed +17
-2
lines changed Expand file tree Collapse file tree 3 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 71
71
<ItemGroup >
72
72
<PackageReference Include =" System.Buffers" Version =" 4.5.1" />
73
73
<PackageReference Include =" System.Memory" Version =" 4.5.5" />
74
- <PackageReference Include =" System.Text.Json" Version =" 8.0.5" />
74
+ <!-- Powershell (pwsh) will have a preloaded version of System.Text.Json that is older than
75
+ the version we will ship in core nuget packages and dlls, so we compile with an older version of STJ
76
+ but ship nuget packages and dlls with newer versions of STJ. If we don't do this then sdk assemblies will fail
77
+ to load in powershell due to unsupported versions -->
78
+ <PackageReference Include =" System.Text.Json" Version =" 6.0.11" />
75
79
</ItemGroup >
80
+ <Import Project =" overrides.targets" />
76
81
</Project >
Original file line number Diff line number Diff line change 83
83
<PackageReference Include =" Microsoft.Bcl.AsyncInterfaces" Version =" 8.0.0" />
84
84
<PackageReference Include =" System.Buffers" Version =" 4.5.1" />
85
85
<PackageReference Include =" System.Memory" Version =" 4.5.5" />
86
- <PackageReference Include =" System.Text.Json" Version =" 8.0.5" />
86
+ <!-- Powershell 7+ already has a preloaded version of system text json which is older than the version
87
+ we ship in nuget packages and dlls. To ensure SDK assemblies can be loaded in powershell, we must compile with
88
+ an older version of System.Text.Json. -->
89
+ <PackageReference Include =" System.Text.Json" Version =" 6.0.11" />
87
90
</ItemGroup >
91
+ <Import Project =" overrides.targets" />
88
92
</Project >
Original file line number Diff line number Diff line change
1
+ <Project >
2
+ <ItemGroup >
3
+ <!-- The package reference element is dynamically uncommented during the build system ZIP file creation-->
4
+ <!-- <PackageReference Update="System.Text.Json" Version="8.0.5" />-->
5
+ </ItemGroup >
6
+ </Project >
You can’t perform that action at this time.
0 commit comments