NuGet package restore seems like it fails after git clean -xdf. Running it a second time it thinks everything is up to date:
The problem is with ninject mvc package.
C:\Users\tilovell\repo\NuGetGallery [staging]> .\build.bat
Microsoft (R) Build Engine version 4.0.30319.17929
[Microsoft .NET Framework, version 4.0.30319.17929]
Copyright (C) Microsoft Corporation. All rights reserved.
The system cannot find the file specified.
All packages listed in packages.config are already installed.
All packages listed in packages.config are already installed.
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1578,5): warning MSB3245: Co
uld not resolve this reference. Could not locate the assembly "Ninject.Web.Mvc". Check to make sure
the assembly exists on disk. If this reference is required by your code, you may get compilation e
rrors. [C:\Users\tilovell\repo\NuGetGallery\Website\Website.csproj]
App_Start\AppActivator.cs(12,15): error CS0234: The type or namespace name 'Web' does not exist in
the namespace 'Ninject' (are you missing an assembly reference?) [C:\Users\tilovell\repo\NuGetGalle
ry\Website\Website.csproj]
App_Start\AppActivator.cs(30,33): error CS0246: The type or namespace name 'Bootstrapper' could not
be found (are you missing a using directive or an assembly reference?) [C:\Users\tilovell\repo\NuG
etGallery\Website\Website.csproj]
All packages listed in packages.config are already installed.
Csproj lists:
<Reference Include="Ninject.Web.Mvc">
<HintPath>..\packages\Ninject.MVC3.2.2.2.0\lib\net40-Full\Ninject.Web.Mvc.dll</HintPath>
</Reference>
Packages.config lists:
<package id="Ninject.MVC3" version="2.2.2.0" />
The package version is listed here 2.2.20:
http://nuget.org/packages/Ninject.MVC3
Directory: C:\Users\tilovell\repo\NuGetGallery\packages\Ninject.MVC3.2.2.2.0
Mode LastWriteTime Length Name
---- ------------- ------ ----
d---- 1/13/2013 12:11 PM lib
-a--- 12/5/2012 3:31 PM 34857 Ninject.MVC3.2.2.2.0.nupkg
C:\Users\tilovell\repo\NuGetGallery\packages\Ninject.MVC3.2.2.2.0 [staging]> cd .\lib
C:\Users\tilovell\repo\NuGetGallery\packages\Ninject.MVC3.2.2.2.0\lib [staging]> dir
C:\Users\tilovell\repo\NuGetGallery\packages\Ninject.MVC3.2.2.2.0\lib [staging]> dir
C:\Users\tilovell\repo\NuGetGallery\packages\Ninject.MVC3.2.2.2.0\lib [staging]>
When I try to git clean –xdf
Deletion of directory 'packages/Ninject.MVC3.2.2.2.0/lib' failed. Should I try again? (y/n) y
So it seems like someone has a lock on the folder.
I closed a couple processes including Reflector, which it appears was inspecting the dll in question.
Then did git clean –xdf again and it worked.
Then did .build again and it worked.
I think it’s really weird that nuget.exe would fail to unpack the dll in the directory which already exists as appears to be the case.
Comments: Our understanding is that a partially filled packages folder prevents nuget.exe install .. from unpacking the nupkg. The scenario should be: I have a partially populated packages folder - when I run nuget.exe install, it should repair any packages that are partially installed rather than (currently) aborting.
The problem is with ninject mvc package.
C:\Users\tilovell\repo\NuGetGallery [staging]> .\build.bat
Microsoft (R) Build Engine version 4.0.30319.17929
[Microsoft .NET Framework, version 4.0.30319.17929]
Copyright (C) Microsoft Corporation. All rights reserved.
The system cannot find the file specified.
All packages listed in packages.config are already installed.
All packages listed in packages.config are already installed.
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1578,5): warning MSB3245: Co
uld not resolve this reference. Could not locate the assembly "Ninject.Web.Mvc". Check to make sure
the assembly exists on disk. If this reference is required by your code, you may get compilation e
rrors. [C:\Users\tilovell\repo\NuGetGallery\Website\Website.csproj]
App_Start\AppActivator.cs(12,15): error CS0234: The type or namespace name 'Web' does not exist in
the namespace 'Ninject' (are you missing an assembly reference?) [C:\Users\tilovell\repo\NuGetGalle
ry\Website\Website.csproj]
App_Start\AppActivator.cs(30,33): error CS0246: The type or namespace name 'Bootstrapper' could not
be found (are you missing a using directive or an assembly reference?) [C:\Users\tilovell\repo\NuG
etGallery\Website\Website.csproj]
All packages listed in packages.config are already installed.
Csproj lists:
<Reference Include="Ninject.Web.Mvc">
<HintPath>..\packages\Ninject.MVC3.2.2.2.0\lib\net40-Full\Ninject.Web.Mvc.dll</HintPath>
</Reference>
Packages.config lists:
<package id="Ninject.MVC3" version="2.2.2.0" />
The package version is listed here 2.2.20:
http://nuget.org/packages/Ninject.MVC3
Directory: C:\Users\tilovell\repo\NuGetGallery\packages\Ninject.MVC3.2.2.2.0
Mode LastWriteTime Length Name
---- ------------- ------ ----
d---- 1/13/2013 12:11 PM lib
-a--- 12/5/2012 3:31 PM 34857 Ninject.MVC3.2.2.2.0.nupkg
C:\Users\tilovell\repo\NuGetGallery\packages\Ninject.MVC3.2.2.2.0 [staging]> cd .\lib
C:\Users\tilovell\repo\NuGetGallery\packages\Ninject.MVC3.2.2.2.0\lib [staging]> dir
C:\Users\tilovell\repo\NuGetGallery\packages\Ninject.MVC3.2.2.2.0\lib [staging]> dir
C:\Users\tilovell\repo\NuGetGallery\packages\Ninject.MVC3.2.2.2.0\lib [staging]>
When I try to git clean –xdf
Deletion of directory 'packages/Ninject.MVC3.2.2.2.0/lib' failed. Should I try again? (y/n) y
So it seems like someone has a lock on the folder.
I closed a couple processes including Reflector, which it appears was inspecting the dll in question.
Then did git clean –xdf again and it worked.
Then did .build again and it worked.
I think it’s really weird that nuget.exe would fail to unpack the dll in the directory which already exists as appears to be the case.
Comments: Our understanding is that a partially filled packages folder prevents nuget.exe install .. from unpacking the nupkg. The scenario should be: I have a partially populated packages folder - when I run nuget.exe install, it should repair any packages that are partially installed rather than (currently) aborting.