Commit 659ac71
committed
[build] Update more NuGet package versions
Context: https://dev.azure.com/devdiv/DevDiv/_componentGovernance/112013/alert/2979569?typeId=6338203
[Component Governance][0] is a Microsoft internal tool which checks
for known security issues in product dependencies. It is currently
reporting a defect in Xamarin.Android because Java.Interop restores
the `System.Net.Http` v4.1.0 NuGet package, which contains security
vulnerability [CVE-2018-8292][1]:
/s/xamarin-android/external/Java.Interop/packages/system.net.http/4.1.0/system.net.http.4.1.0.nupkg
/s/xamarin-android/external/Java.Interop/packages/system.net.http/4.1.0/system.net.http.nuspec
`System.Net.Http` v4.1.0 isn't actually *used* by Java.Interop or
Xamarin.Android, it's just an implicit NuGet dependency of one of the
various NuGet packages which Java.Interop relies on.
The report is "noise".
That said, we should still remove "noise" when possible.
Update most NuGet package versions within Java.Interop to the latest
versions provided by `dotnet-public` or `dotnet-eng` (which may not
be the latest versions on NuGet.org).
Exceptions:
* `Microsoft.Xml.SgmlReader` is not bumped, as the latest version
introduced an ABI break.
* `Microsoft.CodeAnalysis.FxCopAnalyzers` v3.3.2 deprecated the
entire package, introducing additional warnings that I didn't
want to deal with right now.
* `protobuf-net` is still not updated, as the latest version causes
unit test failures; see also PR dotnet#878.
In order to better "centralize" NuGet package version information,
instead of having multiple `%(PackageReference.Version)` values
strewn throughout the codebase, instead have `.csproj` files contain
`@(PackageReference)`s that *don't* contain
`%(PackageReference.Version)`, and instead use [`%(Update)`][2] within
`Directory.Build.targets` to provide the actual package version:
<!-- .csproj -->
<PackageReference Include="Example" />
<!-- Directory.Build.targets -->
<PackageReference Update="Example" Version="1.0.0" />
This pattern requires that there be no "intervening"
`Directory.Build.targets` between the `.csproj` and the root directory;
see also the [MSBuild Customize your build][3] documentation.
Rename the existing `Directory.Build.targets` files to instead use
explicit `<Import/>`s against a newly added `.targets` file;
conceptually reverts part of d70e40f and later commits which use
`Directory.Build.targets`.
[0]: https://docs.opensource.microsoft.com/tools/cg/
[1]: https://nvd.nist.gov/vuln/detail/CVE-2018-8292
[2]: https://docs.microsoft.com/en-us/visualstudio/msbuild/item-element-msbuild?view=vs-2019#attributes-and-elements
[3]: https://docs.microsoft.com/en-us/visualstudio/msbuild/customize-your-build?view=vs-2019#directorybuildprops-and-directorybuildtargets1 parent 3f12cd2 commit 659ac71
File tree
43 files changed
+152
-147
lines changed- build-tools
- Java.Interop.BootstrapTasks
- jnienv-gen
- scripts
- samples/Hello
- src
- Java.Interop.Localization
- Java.Interop.Tools.JavaSource
- Java.Interop
- Xamarin.Android.Tools.AnnotationSupport
- Xamarin.Android.Tools.Bytecode
- java-interop
- tests
- Java.Interop-PerformanceTests
- Java.Interop-Tests
- Java.Interop.Dynamic-Tests
- Java.Interop.Export-Tests
- Java.Interop.Tools.Generator-Tests
- Java.Interop.Tools.JavaCallableWrappers-Tests
- Java.Interop.Tools.JavaSource-Tests
- NativeTiming
- TestJVM
- Xamarin.Android.Tools.ApiXmlAdjuster-Tests
- Xamarin.Android.Tools.Bytecode-Tests
- Xamarin.SourceWriter-Tests
- generator-Tests
- invocation-overhead
- logcat-parse-Tests
- tools
- class-parse
- generator
- java-source-utils
- jcw-gen
- jnimarshalmethod-gen
- logcat-parse
- param-name-importer
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
43 files changed
+152
-147
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | 97 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
| 10 | + | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| |||
0 commit comments