Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I have run into this problem in two scenarios. </p> <p>First, when I attempt to build my solution from the command line using msbuild.exe. Secondly, when I attempt to build the sln and the containing projects on my build server using TFS and CI. </p> <p>I get errors claiming that references are missing. When inspecting both my local build directory and the TFS server's I see that the /packages folder is not created, and the nuget packages are not copied over. Following the instructions listed in Alexandre's answer <a href="http://nuget.codeplex.com/workitem/1879" rel="noreferrer">http://nuget.codeplex.com/workitem/1879</a> also did not work for me. </p> <p>I've enabled Restore Packages via VS2010 and I have seen builds only work from within VS2010. Again, using msbuild fails.My workaround is probably totally invalid, but for my environment this got everything working from a command line build locally, as well as from a CI build in TFS.</p> <p>I went into .\nuget and changed this line in the .nuget\NuGet.targets file:</p> <p>from:</p> <pre><code>&lt;RestoreCommand&gt;$(NuGetCommand) install "$(PackagesConfig)" -source "$(PackageSources)" -o "$(PackagesDir)"&lt;/RestoreCommand&gt; </code></pre> <p>to: (notice, without the quotes around the variables)</p> <pre><code>&lt;RestoreCommand&gt;$(NuGetCommand) install $(PackagesConfig) -source $(PackageSources) -o $(PackagesDir)&lt;/RestoreCommand&gt; </code></pre> <p>I understand that if my directories have spaces in them, this will fail, but I don't have spaces in my directories and so this workaround got my builds to complete successfully...for the time being.</p> <p>I will say that turning on diagnostic level logging in your build will help show what commands are being executed by msbuild. This is what led me to hacking the targets file temporarily.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload