Repository navigation
[main] Source code updates from nuget/nuget.client - #1937
Conversation
|
Important There are conflicts with the {
"barId": 279557,
"path": "nuget-client",
"remoteUri": "https://github.com/nuget/nuget.client",
"commitSha": "aa6cfbc3e15f2054d4be1ffbcdd4e74777c2ba23"
}In case of unclarities, consult the FAQ or tag @dotnet/product-construction for assistance. |
|
@nkolev92 @mmitche different assembly versions based on the TFM is causing issue in consuming repos: This is due to sdk's APICompat / PackageValidation targeting net8.0 (the minimum in-support version of .NETCoreApp) while nuget now only supports net9.0 and net472. Due to that, the net472 assembly gets chosen. We never want that to happen. |
|
I moved us from net8 to net9 to primarily take advantage of the X509CertificateLoader changes. We had been far behind other components in our target tfm, because we were tethered to NS2.0 due to the ilmerge issue, so I saw this as an opportunity to catch-up and simplify our builds. Why does package validation need to target .nET 8? Because it ships OOB? I'd love to remain at .NET 9, but it very likely affects your distributions strategy, so I'll work on a branch reverting the changes, because of the schedule being super close. I think our assembly version changes are probably here to stay because it'll make it really hard for us to get .NET SDK from within our own repo. |
Correct. Basically, you have customers who use in support versions of .NET and you don't want to lock them out. PackageValidation lives in SDK so it shows up here but this would impact any customer in the ecosystem who uses latest NuGet. PackageValidation must be on latest because it also ships in the .NET SDK.
I strongly recommend to go back to .NET 8. That's the TFM that all our ecosystem packages target (like System.Text.Json) cause that's the minimum in-support version. Going higher than that in non app-model packages (which are different, like aspnetcore or msbuild) unnecessarily locks customers out.
Yes, those are fine if we fix the TFM issue. |
|
What are the packages you ship? The download counts seem to pretty low, so OOB usage of API validation doesn't seem to be super comon.
Our policies are primarily tied around NuGet as tooling. NuGet the tool, ships in 4 different products and we prioritize those over the packages. Our packages recently migrated for net5 to net8 and we didn't really get any feedback. That was a move to the current .NET version at that point I think. |
It's not common but it's an option for outside of msbuild context environments.
Given that NuGet.* packages are widely used in the .NET ecosystem (based on the download count from nuget.org), I'm surprised to hear that. While I understand that your tooling scenarios are the driver for most changes, package consumers are also a customer base. But to draw this back to the initial comment: The TFM update currently blocks all insertions into the .NET SDK: RC 1, RC2 and main (this PR). Thanks for taking a look. |
|
Apparently GH allows PRs to close other PRs in a completely different org and repo haha. |
|
More issues due to the netstandard2.0 TFM removal but this time in runtime. |

Note
This is a codeflow update. It may contain both source code changes from the source repo as well as dependency updates. Learn more here.
This pull request brings the following source code changes
From https://github.com/nuget/nuget.client