-
Notifications
You must be signed in to change notification settings - Fork 249
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
Exception while restoring: "Restore metadata is mising the required target frameworks list" #10924
Comments
Seems like a regression from NuGet/NuGet.Client@066a00c. cc @kartheekp-ms. @ps-weber |
@nkolev92 Sure, I'd be happy to give it a try. |
Thanks! This was built locally, you might need to unblock it. If that doesn't work, I can try to get a proper build. Alternatively, here's the branch for the build I created: https://github.com/NuGet/NuGet.Client/tree/dev-nkolev92-addUniqueNameToException |
@ps-weber - In addition to what Nikolche mentioned above, please refer to https://docs.microsoft.com/en-us/visualstudio/ide/how-to-view-save-and-configure-build-log-files?view=vs-2019#to-change-the-amount-of-information-included-in-the-build-log to increase MSBuild log verbosity in Visual Studio. Hopefully at |
@kartheekp-ms Increasing the msbuild verbosity only prints the stacktrace, which I have posted above. @nkolev92 I tried your version of Through some trial and error I was able to find the affected projects and create a sample project with the issue. Thank your for your help so far. |
Thanks @ps-weber I can repro it. Seems similar to NuGet/NuGet.Client@b7f082f#diff-98acbfe166ec87122befe9388b733db2fadf89dcb6051a61f09b7a4b3cd91f90. |
Started getting this error after updating to Visual Studio Fails from within Visual Studio, succeeds from msbuild. I haven't yet been able to isolate a minimal repo, but I had a co-worker run the same steps from There are also some package downgrade warnings, but I doubt that's relevant to this issue. From Visual Studio 2019
From
However:
|
Thank you all for filing these issues! Thanks to all your detailed feedback, I was able to easily diagnose the issue and I am working on a fix in https://github.com/NuGet/NuGet.Client/tree/dev-nkolev92-fixPRtoPClockFile. |
PR out: NuGet/NuGet.Client#4127 Patch changes for 5.11 also running tests: https://github.com/NuGet/NuGet.Client/tree/dev-nkolev92-511xPRtoPCLockFile |
Re-opening to consider patching. |
Where can we track when this has been incorporated into an official Visual Studio release? |
As of now, the fix will be available in 17.0 preview 3. |
17.0 preview 3 looks like Visual Studio 2022. Will this fix be backported to Visual Studio 2019 any time soon? (I see in the discussion a link regarding backporting - however, that appears to be accessible to Microsoft employees only). |
Any updates? |
Vote for https://developercommunity.visualstudio.com/t/1497113 to try to get visibility for incorporating into Visual Studio 2019. |
The issue appears to be resolved in Visual Studio 2019 16.11.5 |
Details about Problem
NuGet product used: Visual Studio
Product version: 16.10.0
Worked before? If so, with which NuGet version: Works with
nuget.exe
5.9.1.11Repro steps and/or sample project
When I restore my solution an Exception is written in the Output Window under "Package Manager".
I have a hard time pinning down which project triggers this error. Most projects mentioned in the log are SDK-Style with PackageReference, in this pattern:
Some projects are additionally build for
netstandard2.0
via theTargetFrameworks
property.Verbose Logs
Sorry, I do not know how to increase the Nuget verbosity in Visual Studio. When I try to restore with nuget.exe, no error occurs.
The text was updated successfully, but these errors were encountered: