NuGet package recovery during very slow operation (~ 10 seconds per project)

I am having problems with very slow builds in a solution with 12 projects, of which 7 included NuGet Package Restore recovery. The diagnostic output usually shows this:

    [...]
    9 ms  ResolveProjectReferences                   1 calls
   18 ms  _CleanGetCurrentAndPriorFileWrites         1 calls
   32 ms  CoreClean                                  1 calls
   56 ms  ResolveAssemblyReferences                  1 calls
   77 ms  _CopyFilesMarkedCopyLocal                  1 calls
  400 ms  CoreCompile                                1 calls
 9082 ms  RestorePackages                            1 calls

This is typical; RestorePackages usually takes 9-10 seconds for each project, and with 7 projects this adds a hefty 70 seconds to my build time. None of my colleagues who are building the same solution have this problem. I disabled all extensions, and Visual Studio (2012) was updated.

I am having a problem with CodePlex , but I also want to ask this knowledgeable community for a quick fix and ask for help in fixing this problem.

: NuGet - RestorePackages , - 10 . RestorePackages = false csproj, .

2: RestorePackages NuGet.targets, . :

<Target Name="RestorePackages" DependsOnTargets="CheckPrerequisites">
    <!--<Exec Command="$(RestoreCommand)"
          Condition="'$(OS)' != 'Windows_NT' And Exists('$(PackagesConfig)')" />

    <Exec Command="$(RestoreCommand)"
          LogStandardErrorAsError="true"
          Condition="'$(OS)' == 'Windows_NT' And Exists('$(PackagesConfig)')" />-->
</Target>

CheckPrerequisites .

: Windows 8.1, .

+4
2

, . NuGet.exe, , , , , .

NUGet , ( ..) , " " " ", , ", ".

0

, .
.

0

All Articles