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

Solution package restore in VS 2017 spews 129 errors, all inappropriate #4764

Closed
AArnott opened this issue Mar 7, 2017 · 2 comments
Closed
Labels
Area:ErrorHandling warnings and errors/log messages & related error codes. Functionality:Restore
Milestone

Comments

@AArnott
Copy link
Contributor

AArnott commented Mar 7, 2017

Version Used:

VS 2017 RTW (dev15rtwsvc 26228.04)

Steps to Reproduce:

git clone https://github.com/aarnott/pinvoke
cd pinvoke
git checkout c5642c29ddd
src\pinvoke.sln

Execute a solution wide package restore.

Expected Behavior:

No errors in package restore. Note that #4753 tracks a failure in package restore that occurs on the command line.

Actual behavior:

The Package Manager output window pane contains the following text, and there are 129 errors in the error list that appear to all be related to these errors.

Restoring NuGet packages...
Project CodeGeneration is not compatible with net40 (.NETFramework,Version=v4.0). Project CodeGeneration supports: net46 (.NETFramework,Version=v4.6)
Project CodeGeneration is not compatible with portable-net40+win8+wpa81 (.NETPortable,Version=v0.0,Profile=Profile92). Project CodeGeneration supports: net46 (.NETFramework,Version=v4.6)
One or more projects are incompatible with .NETFramework,Version=v4.0.
One or more projects are incompatible with .NETPortable,Version=v0.0,Profile=Profile92.
Project CodeGeneration is not compatible with portable-net45+win8+wpa81 (.NETPortable,Version=v0.0,Profile=Profile111). Project CodeGeneration supports: net46 (.NETFramework,Version=v4.6)
One or more projects are incompatible with .NETPortable,Version=v0.0,Profile=Profile111.
Project CodeGeneration is not compatible with net40 (.NETFramework,Version=v4.0). Project CodeGeneration supports: net46 (.NETFramework,Version=v4.6)
One or more projects are incompatible with .NETFramework,Version=v4.0.
Project CodeGeneration is not compatible with net40 (.NETFramework,Version=v4.0). Project CodeGeneration supports: net46 (.NETFramework,Version=v4.6)
Project CodeGeneration is not compatible with net40 (.NETFramework,Version=v4.0). Project CodeGeneration supports: net46 (.NETFramework,Version=v4.6)
One or more projects are incompatible with .NETFramework,Version=v4.0.
One or more projects are incompatible with .NETFramework,Version=v4.0.
Project CodeGeneration is not compatible with portable-net40+win8+wpa81 (.NETPortable,Version=v0.0,Profile=Profile92). Project CodeGeneration supports: net46 (.NETFramework,Version=v4.6)
One or more projects are incompatible with .NETPortable,Version=v0.0,Profile=Profile92.
Project CodeGeneration is not compatible with portable-net45+win8+wpa81 (.NETPortable,Version=v0.0,Profile=Profile111). Project CodeGeneration supports: net46 (.NETFramework,Version=v4.6)
Project CodeGeneration is not compatible with net40 (.NETFramework,Version=v4.0). Project CodeGeneration supports: net46 (.NETFramework,Version=v4.6)
One or more projects are incompatible with .NETPortable,Version=v0.0,Profile=Profile111.
One or more projects are incompatible with .NETFramework,Version=v4.0.
Project CodeGeneration is not compatible with net40 (.NETFramework,Version=v4.0). Project CodeGeneration supports: net46 (.NETFramework,Version=v4.6)
Project CodeGeneration is not compatible with portable-net40+win8+wpa81 (.NETPortable,Version=v0.0,Profile=Profile92). Project CodeGeneration supports: net46 (.NETFramework,Version=v4.6)
One or more projects are incompatible with .NETPortable,Version=v0.0,Profile=Profile92.
One or more projects are incompatible with .NETFramework,Version=v4.0.
Project CodeGeneration is not compatible with portable-net45+win8+wpa81 (.NETPortable,Version=v0.0,Profile=Profile111). Project CodeGeneration supports: net46 (.NETFramework,Version=v4.6)
One or more projects are incompatible with .NETPortable,Version=v0.0,Profile=Profile111.
Project CodeGeneration is not compatible with net40 (.NETFramework,Version=v4.0). Project CodeGeneration supports: net46 (.NETFramework,Version=v4.6)
One or more projects are incompatible with .NETFramework,Version=v4.0.
Project CodeGeneration is not compatible with net40 (.NETFramework,Version=v4.0). Project CodeGeneration supports: net46 (.NETFramework,Version=v4.6)
One or more projects are incompatible with .NETFramework,Version=v4.0.
Project CodeGeneration is not compatible with net40 (.NETFramework,Version=v4.0). Project CodeGeneration supports: net46 (.NETFramework,Version=v4.6)
One or more projects are incompatible with .NETFramework,Version=v4.0.
Project CodeGeneration is not compatible with net40 (.NETFramework,Version=v4.0). Project CodeGeneration supports: net46 (.NETFramework,Version=v4.6)
One or more projects are incompatible with .NETFramework,Version=v4.0.
Project CodeGeneration is not compatible with portable-net40+win8+wpa81 (.NETPortable,Version=v0.0,Profile=Profile92). Project CodeGeneration supports: net46 (.NETFramework,Version=v4.6)
Project CodeGeneration is not compatible with net40 (.NETFramework,Version=v4.0). Project CodeGeneration supports: net46 (.NETFramework,Version=v4.6)
One or more projects are incompatible with .NETPortable,Version=v0.0,Profile=Profile92.
One or more projects are incompatible with .NETFramework,Version=v4.0.
Project CodeGeneration is not compatible with portable-net45+win8+wpa81 (.NETPortable,Version=v0.0,Profile=Profile111). Project CodeGeneration supports: net46 (.NETFramework,Version=v4.6)
One or more projects are incompatible with .NETPortable,Version=v0.0,Profile=Profile111.
Project CodeGeneration is not compatible with net40 (.NETFramework,Version=v4.0). Project CodeGeneration supports: net46 (.NETFramework,Version=v4.6)
One or more projects are incompatible with .NETFramework,Version=v4.0.
Unable to resolve 'G:\git\pinvoke\src\NtDll\NtDll.csproj' for '.NETFramework,Version=v4.6'.
Project CodeGeneration is not compatible with net40 (.NETFramework,Version=v4.0). Project CodeGeneration supports: net46 (.NETFramework,Version=v4.6)
One or more projects are incompatible with .NETFramework,Version=v4.0.
Project CodeGeneration is not compatible with net40 (.NETFramework,Version=v4.0). Project CodeGeneration supports: net46 (.NETFramework,Version=v4.6)
One or more projects are incompatible with .NETFramework,Version=v4.0.
Project CodeGeneration is not compatible with portable-net40+win8+wpa81 (.NETPortable,Version=v0.0,Profile=Profile92). Project CodeGeneration supports: net46 (.NETFramework,Version=v4.6)
Project CodeGeneration is not compatible with net40 (.NETFramework,Version=v4.0). Project CodeGeneration supports: net46 (.NETFramework,Version=v4.6)
One or more projects are incompatible with .NETPortable,Version=v0.0,Profile=Profile92.
One or more projects are incompatible with .NETFramework,Version=v4.0.
Project CodeGeneration is not compatible with portable-net45+win8+wpa81 (.NETPortable,Version=v0.0,Profile=Profile111). Project CodeGeneration supports: net46 (.NETFramework,Version=v4.6)
One or more projects are incompatible with .NETPortable,Version=v0.0,Profile=Profile111.
Project CodeGeneration is not compatible with net40 (.NETFramework,Version=v4.0). Project CodeGeneration supports: net46 (.NETFramework,Version=v4.6)
One or more projects are incompatible with .NETFramework,Version=v4.0.
Project CodeGeneration is not compatible with net40 (.NETFramework,Version=v4.0). Project CodeGeneration supports: net46 (.NETFramework,Version=v4.6)
Project CodeGeneration is not compatible with net40 (.NETFramework,Version=v4.0). Project CodeGeneration supports: net46 (.NETFramework,Version=v4.6)
One or more projects are incompatible with .NETFramework,Version=v4.0.
One or more projects are incompatible with .NETFramework,Version=v4.0.
Project CodeGeneration is not compatible with portable-net40+win8+wpa81 (.NETPortable,Version=v0.0,Profile=Profile92). Project CodeGeneration supports: net46 (.NETFramework,Version=v4.6)
One or more projects are incompatible with .NETPortable,Version=v0.0,Profile=Profile92.
Project CodeGeneration is not compatible with net40 (.NETFramework,Version=v4.0). Project CodeGeneration supports: net46 (.NETFramework,Version=v4.6)
Project CodeGeneration is not compatible with portable-net45+win8+wpa81 (.NETPortable,Version=v0.0,Profile=Profile111). Project CodeGeneration supports: net46 (.NETFramework,Version=v4.6)
One or more projects are incompatible with .NETFramework,Version=v4.0.
One or more projects are incompatible with .NETPortable,Version=v0.0,Profile=Profile111.
Project CodeGeneration is not compatible with net40 (.NETFramework,Version=v4.0). Project CodeGeneration supports: net46 (.NETFramework,Version=v4.6)
One or more projects are incompatible with .NETFramework,Version=v4.0.
Project CodeGeneration is not compatible with net40 (.NETFramework,Version=v4.0). Project CodeGeneration supports: net46 (.NETFramework,Version=v4.6)
One or more projects are incompatible with .NETFramework,Version=v4.0.
Project CodeGeneration is not compatible with net40 (.NETFramework,Version=v4.0). Project CodeGeneration supports: net46 (.NETFramework,Version=v4.6)
One or more projects are incompatible with .NETFramework,Version=v4.0.
Project CodeGeneration is not compatible with portable-net40+win8+wpa81 (.NETPortable,Version=v0.0,Profile=Profile92). Project CodeGeneration supports: net46 (.NETFramework,Version=v4.6)
One or more projects are incompatible with .NETPortable,Version=v0.0,Profile=Profile92.
Unable to resolve 'G:\git\pinvoke\src\Wtsapi32\Wtsapi32.csproj' for '.NETFramework,Version=v4.0'.
Project CodeGeneration is not compatible with net40 (.NETFramework,Version=v4.0). Project CodeGeneration supports: net46 (.NETFramework,Version=v4.6)
Project CodeGeneration is not compatible with net40 (.NETFramework,Version=v4.0). Project CodeGeneration supports: net46 (.NETFramework,Version=v4.6)
One or more projects are incompatible with .NETFramework,Version=v4.0.
One or more projects are incompatible with .NETFramework,Version=v4.0.
NuGet package restore failed.
Time Elapsed: 00:00:00.5141163
========== Finished ==========
@AArnott
Copy link
Contributor Author

AArnott commented Sep 4, 2017

The errors from package restore seem to be significantly reduced (with VS 15.3 and tip of my master branch). Now the only error (displayed) is this one:

Error occurred while restoring NuGet packages: The operation failed as details for project Magnification.Tests could not be loaded.

I don't know what (if anything) is special about this Magnification.Tests project.

@emgarten emgarten added this to the 4.5 milestone Oct 18, 2017
@emgarten emgarten added Functionality:Restore Area:ErrorHandling warnings and errors/log messages & related error codes. labels Oct 18, 2017
@emgarten
Copy link
Member

This should be fixed in the latest version of NuGet/VS. Please let me know if you are still hitting issues.

The details could not be loaded is a generic message for when project metadata has not been sent yet by the nomination process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area:ErrorHandling warnings and errors/log messages & related error codes. Functionality:Restore
Projects
None yet
Development

No branches or pull requests

2 participants