-
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
Dupe: casing problems of ProjectReference can cause nuget.exe restore to fail. Fixed in 4.4. #5870
Comments
I tried restore_VS2017_bat, but didn't repro it.
Could you share the nuget.exe ouput with specifying -verbosity detailed? |
Thx for looking into it! That's weird, I can reproduce it on my home pc too.
Here is the content of
Here is the log file: log.txt |
Thanks for clarifying. I was looking at wrong project, I can repro with AnvilControls. @emgarten Could you take a quick look? |
This looks similar to #5855 The workaround is to ensure that all references to the project have the same casing, including the solution. |
It's very unlikely as we use a tool to generate our projects. |
@emgarten Indeed you were right! One .vcxproj references our project and he's missing some uppercase caracters:
When replaced by
The restore works correctly 😄 I think I had a hard time reproducing in a simple repro case as I was editing with Visual Studio and I guess it was automatically fixing the case when the .vcxproj was saved. |
Glad you got it working! This has been fixed for the next release. |
Will you make it available before next VS release on https://www.nuget.org/downloads ? |
@jairbubbles for which component? |
I'm not sure of what you're asking. Just nuget.exe ? |
//cc @rrelyea for nuget.exe 4.4 preview plan |
This will be fixed in NuGet 4.4.0 preview 3 and later. |
Details about Problem
I'm using nuget.exe version 4.3 with Visual Studio Version 15.3.3 on Win10 64bit v1607
Detailed repro steps so we can see the same problem
Unzip this file: NuGetRestoreBug.zip. (It contains nuget.exe v4.3)
Run
restore_VS2017.bat
which callsnuget.exe restore
on a VS2017 solutionOpen
source\anvil\AnvilControls\obj\project.assets.json
and observe it contains no resolved references whereas the corresponding projectAnvil.Controls.vs2017.csproj
contains:Other suggested things
By running
restore_VS2015.bat
you can notice that it works correctly with the same projects structure usingproject.json
. (seesource\anvil\AnvilControls\project.lock.json
)If you restore directly on the vs2017 project
Anvil.Controls.vs2017.csproj
it works correctly.In projectAnvil.System.vs2017.csproj
there is as Service Reference, when removed it seems to fix the problem.The text was updated successfully, but these errors were encountered: