An error “Package System.ArgumentNullException: Value cannot be null” occurs when restoring package with the context menu: ‘Restore NuGet Packages’ after cleaning solution #13452
Labels
Found:ManualTests
Functionality:Restore
Priority:1
High priority issues that must be resolved in the current sprint.
RegressionDuringThisVersion
A regression which broke since last RTM, and was fixed before the next RTM.
Type:Bug
Milestone
NuGet Product Used
Visual Studio Package Management UI
Product Version
NuGet Client Dev\6.11.0.55
Worked before?
It’s a regression since it doesn’t repro on Main\34915.142 + NuGet Client Dev\6.11.0.50.
Impact
It's more difficult to complete my work
Repro Steps & Context
Repro Steps:
Create a C# Console App (.NET Core) project in VS.
Right-click the solution node in Solution Explorer window and click the context menu: ‘Clean Solution’.
Right-click the solution node in Solution Explorer window and click the context menu: ‘Restore NuGet Packages’.
Expected:
The retore is successful without any error.
Actual:
An error “Package System.ArgumentNullException: Value cannot be null” occurs as below:
![image (1)](https://private-user-images.githubusercontent.com/84695155/332015084-781da4f9-b725-431f-942a-a0375651e22b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1MDc5NDMsIm5iZiI6MTcyNDUwNzY0MywicGF0aCI6Ii84NDY5NTE1NS8zMzIwMTUwODQtNzgxZGE0ZjktYjcyNS00MzFmLTk0MmEtYTAzNzU2NTFlMjJiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI0VDEzNTQwM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTVjYWI3NjcyMWFkYTYwZmQ5YzkwNDYzYTlkOTAyMTAyMjQwZjM5YjBkNjEwNGYyNTExNTIzNWZiNmMwOTc1MDEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.5peCqiim1YSW23gul827ZpNGqP49ptaBvugDHUY1SyE)
Notes:
The repro rate is 100%.
It doesn’t repro on non-SDK project that install package with “packages.config” format.
It doesn’t repro after running ‘dotnet restore’ or ‘msbuild /t:restore’ command in CLI and ‘nuget restore’ in PMC.
Verbose Logs
No response
The text was updated successfully, but these errors were encountered: