-
Notifications
You must be signed in to change notification settings - Fork 256
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
dotnet add package with CPM installs a different version than what gets restored #13657
Comments
I have just worked on reproducing this again. This won't reproduce if the |
Weird, I reproduce with After {
"version": 3,
"targets": {
"net8.0": {
"Azure.Identity/1.12.0": {
...
}
...
}
}
} After {
"version": 3,
"targets": {
"net8.0": {
"Azure.Identity/1.10.3": {
...
}
...
}
}
} I think the If you want, I can try to fix it? |
@vernou thank you for noticing this! With the C# DevKit installed in VSCode, it's harder to notice, because it will automatically restore the project, so trying to view the assets file in VSCode is harder 🤦 If you'd like to contribute a fix, that will be fantastic. The code is in our I've also created a second issue, which will help understand the scenario when the project is hand-edited without restoring: If you (or any other community member) cannot fix this soon, I'll probably end up trying to do it myself in September. |
@zivkan, I created the draft PR NuGet/NuGet.Client#5982. |
There's a decent chance that this fix makes it into the 9.0.100 SDK, but a small chance it'll slip to 9.0.200 |
NuGet Product Used
dotnet.exe
Product Version
8.0.7
Worked before?
No response
Impact
It bothers me. A fix would be nice
Repro Steps & Context
Directory.Packages.props
to Package Management specify[email protected]
:Azure.Identity
without specify the version and audit it :The audit show no vulnerability :
The audit show the expected vulnerabilities :
Without CPM, the audit work without restore :
So the audit show the expected vulnerabilities :
I expect the audit work without a explicit restore.
Verbose Logs
No response
The text was updated successfully, but these errors were encountered: