-
Notifications
You must be signed in to change notification settings - Fork 258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: No way to suppress very noisy "The project ... is using CentralPackageVersionManagement, a NuGet preview feature." #11724
Comments
Linking to NuGet/NuGet.Client#3376 and #9340 |
Team Triage: This is currently |
Now that this feature has been made generally available, can this warning be removed? |
I concur with @pensono. This feature is no longer in preview as of NuGet 6.2, VS 2022 17.2, and .NET SDK 6.0.300 per the Central Package Management (CPM) docs. There really needs to be a way to get rid of the "noisy by design" message now. It's not only bothersome; it's incorrect since it's no longer a preview feature. I'm running VS 17.2.3, and its Package Manager Console Host Version is 6.2.0.146. I still see this "preview" message frequently in my VS builds and in command line builds with MSBuild. Is there any way to suppress it? |
Unfortunately, it seems that CPM is still in preview as far as the NuGet team is concerned even though the blog article announcing CPM didn't indicate that. The MSDN docs don't say "still in preview" either although there is a tiny note at the end of the docs that says, "This feature is in active development.". @JonDouglas also announced that CPM shipped in #6764, but then "clarified" to "landed in preview" in a later comment. Other people have pointed out that this state is very confusing (e.g., NuGet Docs #2770 and Introducing Central Package Management, comment 202. 🙁 For anyone else that comes to this issue wanting the annoying |
Commit 3f4aeb0 switched from MainPackage.GeneralOptions to .HighlightOptions, but I missed two places where the .GeneralOptions.Applied event was used. That meant changing .HighlightOptions properties wouldn't cause text to be reclassified (i.e., re-highlighted) without a restart. Also, added default gray highlight rule for "CPM preview" message that's discussed at NuGet/Home#11724. This way the annoying preview message is rendered as gray text rather than normal text.
FWIW, I just published Menees VS Tools release 2022.0.4 with a default gray highlight rule for the "CPM preview" message. This way the annoying preview message is rendered as gray text rather than normal text in the VS Build Output window if you're using my free extension with its default settings. It's not as nice as getting rid of the message altogether, but it helps me to recognize it quicker as an ignorable detail line. |
I'm still getting this warning using Dotnet SDK 6.0.417-1 If this was fixed last year, why is it still appearing? |
It was removed in NuGet 6.4, #11950, which matches 7.0.100, https://learn.microsoft.com/en-us/nuget/release-notes/nuget-6.4. |
Is there any chance they'll ever get a .NET 6 with NuGet 6.5? I only ask as my monorepo is tied to always support .NET 6 because of some old Windows devices. If this is going to forever persist for .NET 6 LTS I might consider sticking with the old central package management standard :-/. A forever spammed warning message that all my devs see every single time they build for the foreseeable future really stinks. |
@betmix-matt, It sounds like maybe you need to target .NET 6, but that's a different thing than needing to use the .NET 6 SDK. You could use the .NET 7 or 8 SDK to be rid of this warning while still targeting .NET 6. |
NuGet Product Used
dotnet.exe
Product Version
6.0.200
Worked before?
No response
Impact
It bothers me. A fix would be nice
Repro Steps & Context
Every single project gets a warning about using CPVM as a preview feature in the console log. This adds a lot of noise and it would be nice to be able to suppress it.
Verbose Logs
No response
The text was updated successfully, but these errors were encountered: