9

Closed

automatic Package restore doesn't work for solution folder

description

  1. Create new solution
  2. Add a solution folder
  3. Add a class library project to the solution folder
  4. install package to class library
  5. delete packages folder
  6. build
Actual:
it doesn't restore packages

Expected:
it should restore packages

file attachments

Closed Sep 18, 2013 at 6:25 PM by deepakverma
verified it works fine with solution folder after the fix.

comments

MaximPashuk wrote Sep 1, 2013 at 5:20 PM

I can reproduce in in Nuget 2.7 also, created an issue

https://nuget.codeplex.com/workitem/3640

for this.

davidebbo wrote Sep 8, 2013 at 3:44 PM

We're running into this as well in Kudu (https://github.com/projectkudu/kudu). Solution folders are pretty common, so I would think this would be a blocker for quite a few people.

Sgro wrote Sep 9, 2013 at 11:48 AM

We're having this problem as well. This is a major blocker because it's preventing to upgrade our corporate solution (25+ projects) to the latest nuget version and workflow.

kcs wrote Sep 9, 2013 at 8:52 PM

Just confirming that I am having the same issue with Premium.

Typical reference error because the packages that the project requires are missing and the C# project is in a VS Solution folder.

"Error 1 The type or namespace name 'blah' could not be found (are you missing a using directive or an assembly reference?)"

Package Manager Console Host Version 2.7.40808.167

dotnetjunky wrote Sep 9, 2013 at 10:33 PM

This is a known issue. We are going to fix it.

adamralph wrote Sep 11, 2013 at 10:18 AM

Is this a regression in 2.7? Is there a workaround?

davidebbo wrote Sep 11, 2013 at 4:58 PM

@adamralph: no, this is not a regression since it only relates to sites that opt into a workflow that didn't exist before. I don't think there is a case where a project that was working before would become broken with 2.7.

adamralph wrote Sep 11, 2013 at 10:12 PM

OK, thanks, that's good to know.

deepakverma wrote Sep 12, 2013 at 5:47 AM

We have fixed this issue, can you please try the nightly build for VS 2013 http://build.nuget.org/NuGet.Tools-2013.vsix and confirm that it works for you.
for Vs 2010 and VS 2012
http://build.nuget.org/NuGet.Tools.vsix

thanks.

adamralph wrote Sep 13, 2013 at 5:22 AM

Thanks. Someone else in my team stumbled upon this and reproduced it. I've forwarded this thread to him.

ugumba wrote Sep 18, 2013 at 7:42 PM

Logging in as a guest user on the TeamCity server yields an error about not finding the file to download.
Any ideas on when this fix will be available as an update in VS?

I've spent 2 days with trial and error (are sln folder really not used that much? does everybody else only play with toys projects? ;-) ) Anyway, my sln auto restore immediately worked after moving the project out of the solution folder - so thanks for that hint.

deepakverma wrote Sep 18, 2013 at 8:15 PM

I have attached the nightly vsix to this issue for you. Fix would be available in the upcoming NuGet 2.7.1 release.

adamralph wrote Oct 4, 2013 at 4:59 PM

Has a release date for 2.7.1 been decided yet? This is blocking my move the new package restore for all of my projects.

deepakverma wrote Oct 4, 2013 at 6:18 PM

We should have it out by next week, thanks for your patience.

adamralph wrote Oct 4, 2013 at 7:08 PM

@deepakverma great to hear that, thank you.