Commit 6f58ced
[rel/18.7] Skip nupkg verifier in .NET product build mode (#16092)
The binding redirect verifier in verify-nupkgs.ps1 fails in the dotnet/dotnet
VMR build because source-built dependency packages have older AssemblyVersion
stamps than NuGet.org packages (e.g. System.Runtime.CompilerServices.Unsafe
ships as 6.0.0.0 from source-build but 6.0.3.0 from NuGet.org).
The newVersion of a bindingRedirect must equal the AssemblyVersion of the
DLL actually shipped beside the exe, so no single value can satisfy both
the VMR/source-build pipeline (dnceng-public) and the internal pipeline
(dnceng / NuGet.org-based) at the same time.
Back-port the same skip already present on rel/18.8 and main: gate the
_VerifyNuGetPackages target on DotNetBuild != 'true' so the VMR no longer
runs the verifier, while the internal pipeline (which produces the actually-
shipped packages) continues to validate the redirects.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent e4a393a commit 6f58ced
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
8 | 14 | | |
9 | 15 | | |
10 | 16 | | |
| |||
0 commit comments