Skip to content
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

Restore with local source and protocolVersion=3 causes NU1900 warnings #13901

Open
zivkan opened this issue Nov 1, 2024 · 0 comments
Open

Restore with local source and protocolVersion=3 causes NU1900 warnings #13901

zivkan opened this issue Nov 1, 2024 · 0 comments
Labels

Comments

@zivkan
Copy link
Member

zivkan commented Nov 1, 2024

NuGet Product Used

dotnet.exe, MSBuild.exe, Visual Studio Package Management UI

Product Version

NuGet 6.11

Worked before?

No response

Impact

None

Repro Steps & Context

Have a local source added where protocolVersion="3" is also specified. For example, <add key="local" value="nupkgs" protocolVersion="3" />.

Restore will result in a bunch of NU1900 warnings:

Warnung (active) - NU1900 - Error occurred while getting package vulnerability data: Object reference not set to an instance of an object.

It also causes PM UI to have an error, making it unusable.

Verbose Logs

Originally reported in VS' Developer Community: https://developercommunity.visualstudio.com/t/Visual-Studio-2022-throws-exception-NU1/10778056

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants