<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:media="http://search.yahoo.com/mrss/"><channel><title><![CDATA[TFS - Deltacode Blog]]></title><description><![CDATA[A web developer's blog by David De Sloovere]]></description><link>https://blog.deltacode.be/</link><image><url>https://blog.deltacode.be/favicon.png</url><title>TFS - Deltacode Blog</title><link>https://blog.deltacode.be/</link></image><generator>Ghost 3.35</generator><lastBuildDate>Tue, 09 Jun 2026 21:14:30 GMT</lastBuildDate><atom:link href="https://blog.deltacode.be/tag/tfs/rss/" rel="self" type="application/rss+xml"/><ttl>60</ttl><item><title><![CDATA[NuGet package restore fail TFS Build Server]]></title><description><![CDATA[<!--kg-card-begin: markdown--><p>If you don’t want to check-in packages into your source control system, you can <a href="http://docs.nuget.org/docs/workflows/using-nuget-without-committing-packages" title="Using NuGet without committing packages to source control">enable package restore</a>. This will automate the download of packages during build, if packages aren’t on the machine yet.</p>
<p>After enabling this for a solution I’m working on, I had no problem running</p>]]></description><link>https://blog.deltacode.be/2012/07/10/nuget-package-restore-fails-on-tfs-build-server/</link><guid isPermaLink="false">5f777fee6d3795227c24a4d8</guid><category><![CDATA[ALM]]></category><category><![CDATA[NuGet]]></category><category><![CDATA[TFS]]></category><dc:creator><![CDATA[David De Sloovere]]></dc:creator><pubDate>Tue, 10 Jul 2012 12:47:01 GMT</pubDate><content:encoded><![CDATA[<!--kg-card-begin: markdown--><p>If you don’t want to check-in packages into your source control system, you can <a href="http://docs.nuget.org/docs/workflows/using-nuget-without-committing-packages" title="Using NuGet without committing packages to source control">enable package restore</a>. This will automate the download of packages during build, if packages aren’t on the machine yet.</p>
<p>After enabling this for a solution I’m working on, I had no problem running this locally. I removed my original packages folder from disc, and the build succeeded because nuget.exe (reference in the build) was able to download the packages. However… <strong>this didn’t work on our tfs build server</strong>.</p>
<h2 id="nugetpackagerestorefrombuildservernotdownloadingpackages">NuGet package restore from build server – not downloading packages</h2>
<p>The log file showed the command that was run:</p>
<pre><code>&quot;C:Builds\1\TeamProjectName\TeamProjectName\_Dev\_CI\Sources\.nuget\nuget.exe&quot; install &quot;C:Builds\1\TeamProjectName\TeamProjectName\_Dev\_CI\Sources\src\TeamProjectName.Services\packages.config&quot; -source &quot;https://nuget.org/api/v2/&quot; -o &quot;C:Builds\1\TeamProjectName\TeamProjectName\_Dev\_CI\Sources\packages&quot;
</code></pre>
<p>After running this from the command prompt, the <strong>output folder</strong> (packages) was not only empty, it <strong>didn’t even exist</strong>. Worse, running the command didn’t even give a hint of a failure.</p>
<p><em>The solution for me:</em><br>
Starting with <a href="http://docs.nuget.org/docs/release-notes/nuget-2.0" title="NuGet 2.0 Release Notes">NuGet 2.0</a> there’s a new option to give NuGet <a href="http://blog.nuget.org/20120518/package-restore-and-consent.html" title="Package Restore and Consent">consent</a> to download packages: <strong>Allow NuGet to download missing files during build</strong>.<br>
These are the steps to fix this problem:</p>
<ul>
<li>Go to your build server (rdp or physical)</li>
<li>Start Visual Studio</li>
<li>Check the version of NuGet under Tools &gt; Extension Manager - Update to v2.0 if needed and restart Visual Studio</li>
<li>You might need to uninstall, restart and install if simple update doesn’t work.</li>
<li>Open up the NuGet settings under Tools &gt; Options &gt; Package Manager</li>
<li>Make sure the <strong>Allow NuGet to download missing files during build</strong> checkbox is <strong>checked</strong>.</li>
</ul>
<p>[<img src="http://res.cloudinary.com/dij0bp3cb/image/upload/v1399921096/nuget-package-restore-fail-tfs-build_oqzljq.png" alt="NuGet Package Restore" title="nuget-package-restore-fail-tfs-build">]</p>
<p>Possible solution if NuGet package restore fail on build server.<br>
Make sure the consent checkbox is checked.</p>
<h2 id="ifyourbuildrunsunderadifferentaccount">If your build runs under a different account</h2>
<p>Maybe you can’t/won’t run Visual Studio under the account the build runs. Or maybe visual studio isn’t even installed.<br>
NuGet will look for an environment variable as a workaround.<br>
Create an <strong>environment variable</strong> named ‘<em>EnableNuGetPackageRestore</em>‘ with the value ‘<em>true</em>‘.<br>
Right-click computer, properties, advanced system settings, environment variables, hit New under system variables, create the variable and reboot the machine.</p>
<h3 id="stillnotsolved">Still not solved?</h3>
<p>If this didn’t solve the problem, other things to try for your package restore to work on your build server:</p>
<ul>
<li>Check the <strong>NuGet.targets</strong> file in the .nuget folder. And look for <strong>PackageSource</strong>. You can specify repositories there if you have a custom NuGet gallery or need to reference MyGet or similar.</li>
<li>Check the firewall of proxy in your network. NuGet might be blocked.</li>
</ul>
<p><strong>Was this post helpful to you? Please let me know in the comments.</strong></p>
<!--kg-card-end: markdown-->]]></content:encoded></item><item><title><![CDATA[Find TFS ChangeSet based on Check-In Note]]></title><description><![CDATA[<!--kg-card-begin: markdown--><p>Want to find a ChangeSet through a value you entered in Check-In Note? It’s not that hard, but it isn’t obvious to know where to look.</p>
<p>You must have the TFS Power Tools installed: <a href="http://visualstudiogallery.msdn.microsoft.com/c255a1e4-04ba-4f68-8f4e-cd473d6b971f">Team Foundation Server Power Tools September 2010</a></p>
<p>In the command prompt or run dialog,</p>]]></description><link>https://blog.deltacode.be/2011/02/22/tfs2010-find-changeset-based-on-check-in-note-value/</link><guid isPermaLink="false">5f777fee6d3795227c24a4d5</guid><category><![CDATA[ALM]]></category><category><![CDATA[TFS]]></category><dc:creator><![CDATA[David De Sloovere]]></dc:creator><pubDate>Tue, 22 Feb 2011 16:31:48 GMT</pubDate><content:encoded><![CDATA[<!--kg-card-begin: markdown--><p>Want to find a ChangeSet through a value you entered in Check-In Note? It’s not that hard, but it isn’t obvious to know where to look.</p>
<p>You must have the TFS Power Tools installed: <a href="http://visualstudiogallery.msdn.microsoft.com/c255a1e4-04ba-4f68-8f4e-cd473d6b971f">Team Foundation Server Power Tools September 2010</a></p>
<p>In the command prompt or run dialog, you execute:</p>
<pre><code>tfpt searchcs
</code></pre>
<p>This will bring up a very handy dialog, allowing you to set some filters, including the check-in notes.</p>
<p><a href="http://res.cloudinary.com/dij0bp3cb/image/upload/v1399921103/tfs2010-custom-note-search_bp53of.png"><img src="http://res.cloudinary.com/dij0bp3cb/image/upload/h_287,w_300/v1399921103/tfs2010-custom-note-search_bp53of.png" alt title="TFS 2010 - Custom Note Search w/ Power Tools"></a></p>
<p>TFS 2010 – Custom Note Search w/ Power Tools</p>
<!--kg-card-end: markdown-->]]></content:encoded></item></channel></rss>