Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>It's actually pretty easy to invoke NuGet as a pre-build step. You can override the BeforeBuild target in your *.*proj file for the project with NuGet references.</p> <pre><code>&lt;Target Name="BeforeBuild"&gt; &lt;Exec Command="&amp;quot;$(SolutionDir)Tools\nuget&amp;quot; install &amp;quot;$(ProjectDir)packages.config&amp;quot; -o &amp;quot;$(SolutionDir)Packages&amp;quot;" Condition="'$(BuildingInsideVisualStudio)'==''" /&gt; &lt;/Target&gt; </code></pre> <p>As implied by the snippet above, you'll want to download the <a href="http://nuget.codeplex.com/releases/view/58939" rel="nofollow noreferrer">NuGet command line utility</a>, place it in a folder beneath your solution folder, and check it into version control. Note that the executable you download is actually a bootstrapper that you'll want to run once to download the <em>real</em> executable.</p> <p>Next you'll want to check in the packages.config file from your project directory, but not the packages folder beneath your solution directory. Note that I've included a check for $(BuildingInsideVisualStudio) to <em>not</em> be set in the pre-build step above. This will cause the packages to be downloaded and installed at build-time when building with the TFS build service (or from the command line). It won't affect your NuGet experience inside Visual Studio.</p> <p>You can search for articles on automating the creation of NuGet packages with TFS - quite a few people have blogged about it. The combination of the two makes for a very capable dependency management solution. Now we just need a NuGet feed built into TFS ;).</p>
    singulars
    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. 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.
    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