-
Notifications
You must be signed in to change notification settings - Fork 252
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
Package restore of sln fails, but each individual project succeeds #4753
Comments
I'm experiencing the same issue, where using MSBuild /t:Restore to restore many projects together is failing with error similar to: "error : Unable to resolve '<my common .csproj>' for '.NETFramework,Version=v4.5'. In my case, this error appears for several projects, and they're all referring to the same <my common .csproj>, which is a common project that almost all other projects reference (by ProjectReference). Some projects that were failing to restore with this error succeeded when I restored them individually, as mentioned in the OP. However, other projects still fail with the same error even when I restore them (with msbuild /t:restore) individually. Is there a known workaround that I can try until a fix is ready? |
I'm not able to repro this in NuGet 4.4/VS 15.4 using the steps above. This is has likely been fixed. Let me know if you are seeing this issue still. |
Agreed. This is gone in the latest builds. Thanks. |
To close the loop on this one- yes it is gone. After some more investigation and experimentation, I found the issue I was experiencing was related to #2901. Namely, when some common project is referenced by multiple other projects in the dependency graph, using ProjectReference items but with different string-casing (e.g one project references 'SomeCommonProject.csproj', and another references 'somecommonproject.csproj'), the issue happens. After normalizing the casing of all ProjectReference references, the issue was resolved for me. |
d15rel 26228.0
Package restore mostly succeeds, but fails with these two errors:
Yet when I do a package restore on each individual project in the solution, I get no errors:
The text was updated successfully, but these errors were encountered: