Repository navigation
Commit 7573efb
authored
Update System.Text.Json and enable transitive pinning (microsoft#938)
This commit updates the System.Text.Json package version to 7.0.0 and
enables the CentralPackageTransitivePinningEnabled property in the
Directory.Packages.props file. This property allows the central package
management feature to pin the versions of transitive dependencies to the
ones specified in the props file, avoiding potential conflicts or
inconsistencies. This change improves the reliability and
maintainability of the dotnet projects that use the
Directory.Packages.props file.
The test ReadFromJsonThrowsWithInvalidJson was passing an invalid JSON
string to the JsonSerializer.Deserialize method, which was expected to
throw a JsonException. However, the method actually throws an
ArgumentNullException in System.Text.Json 7.0.0 when the named property
is missing. This commit fixes the test by updating the expected
exception type. It also adds a pragma directive to suppress the JSON001
warning for the invalid JSON string.
[Central Package Management | Microsoft
Learn](https://learn.microsoft.com/en-us/nuget/consume-packages/Central-Package-Management)
[Update dependencies | Docs - Microsoft Open
Source](https://docs.opensource.microsoft.com/tools/cg/how-to/updating-dependencies/#nuget)1 parent 7cd0fea commit 7573efb
2 files changed
Lines changed: 5 additions & 2 deletions
File tree
- dotnet
- src/SemanticKernel.UnitTests/Orchestration
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | | - | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| 167 | + | |
167 | 168 | | |
| 169 | + | |
168 | 170 | | |
169 | 171 | | |
170 | 172 | | |
| |||
181 | 183 | | |
182 | 184 | | |
183 | 185 | | |
184 | | - | |
| 186 | + | |
185 | 187 | | |
186 | 188 | | |
0 commit comments