Commit f1927df
authored
Add System.Text.Json to Directory.Build.props to fix MSB3277 (#1669)
The Contracts project targets netstandard2.0 and pulls System.Text.Json
9.0.x from NuGet. Every other project targets net8.0, which ships with
System.Text.Json 8.0.x in the framework. MSBuild sees both versions and
warns (MSB3277).
Adding an explicit System.Text.Json reference to Directory.Build.props
means all net8.0 projects pick up the 9.0.x NuGet package instead of
relying on the framework copy. One line, fixes the warning everywhere.1 parent 6aad0b4 commit f1927df
File tree
2 files changed
+1
-1
lines changed- src/Microsoft.ComponentDetection.Contracts
2 files changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
| |||
0 commit comments