-
Notifications
You must be signed in to change notification settings - Fork 743
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] Security warning/errors when restoring on net9preview #18019
Comments
These are false positives from NuGet. NuGet/Home#13622 |
The possible options:
|
The NuGet issue will not be fixed in .NET 9 stable |
@jeromelaban Do you have a preference on what we should do here? |
There's no good way for fixing this. All modes are causing trouble. We'll need to fix this in multiple locations, or workaround in multiple locations and this is going to either be a security risk, or very verbose change to the default templates. |
.NET9 now in general release and this error swamps the output. I'm getting this...
What should we do about it? The description for that package on Nuget explicitly says not to reference it directly. Please advise what we are supposed to do. Thanks. |
At this time, the only possible option is to explicitly install those packages in your app. We're working to determine which dependencies are pulling those references in order to avoid these errors in the templates. |
@jeromelaban OK, thanks. Just seems wrong to install packages you aren't directly using, especially ones whose descriptions say they aren't meant for direct use, just to avoid spurious warnings. |
Looking further into this issue, this is only happening on
Those dependencies have been removed in Uno for net9.0 where the warnings do not show up anymore. We will not be changing net8.0 dependencies to avoid introducing unnecessary breaking changes. To fix this behavior, there are three possible paths:
Note that the new |
@jeromelaban Sorry to argue, but this is happening to me on a brand new .net9 solution (ie not upgraded from .net8) where there is a dependency on |
@MrYossu could you provide the settings you used to create your solution? As well as a binlog? |
@jeromelaban Not sure what you mean by settings, but I just realised why you mentioned Uno earlier. I came to this discussion from Google, and didn't spot that it's on the Uno repo. I had been reading so many on the dotnet repo and thought this was another! I'm not using Uno, and so my comments here are probably irrelevant. As far as I can see, the problem is an underlying .NET/VS issue, so should be discussed in a repo more relevant. Sorry for the confusion! |
No problem, thanks for the update. You may want to start a discussion with the package owners that you use in your solution. |
@jeromelaban I did made just the same (created a new uno app) like he told, after the new .net version came out and got greeted with issues... so when creating that one from scratch new, that issue should not happen? Because I did it with different settings and seems like its mainly the apps with server or mauiembedding choosen on my side. |
@DevTKSS we're still updating the bits for net9 stable, it should be updated soon. |
@jeromelaban thank you 👍 just wanted to make sure you know about them. I am not hurrying. Take the time you need for great things :) |
Current behavior
Create new application using any of the template options
Update global.json to allow prerelease versions
Run dotnet restore
Expected behavior
No security warnings/errors
How to reproduce it (as minimally and precisely as possible)
No response
Workaround
No response
Works on UWP/WinUI
None
Environment
No response
NuGet package version(s)
No response
Affected platforms
No response
IDE
No response
IDE version
No response
Relevant plugins
No response
Anything else we need to know?
No response
The text was updated successfully, but these errors were encountered: