<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sander van Vliet &#187; Visual Studio</title>
	<atom:link href="http://barad-dur.nl/category/net/visual-studio/feed/" rel="self" type="application/rss+xml" />
	<link>http://barad-dur.nl</link>
	<description>Land Rovers, .Net en meer!</description>
	<lastBuildDate>Fri, 11 Nov 2011 07:46:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>VS2010 HatPackage did not load correctly</title>
		<link>http://barad-dur.nl/net/vs2010-hatpackage-did-not-load-correctly/</link>
		<comments>http://barad-dur.nl/net/vs2010-hatpackage-did-not-load-correctly/#comments</comments>
		<pubDate>Fri, 11 Nov 2011 07:46:15 +0000</pubDate>
		<dc:creator>Sander</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://barad-dur.nl/?p=204</guid>
		<description><![CDATA[This morning when I started Visual Studio 2010 it threw a wobbly at me. It seemed the Microsoft.VisualStudio.TeamFoundation.VersionControl.HatPackage did not load correctly. Of course I tried to Google for this error but I was unable to find anything useful apart from trying to repair the Visual Studio installation. Fortunately I have the /Log option set <a href="http://barad-dur.nl/net/vs2010-hatpackage-did-not-load-correctly/" class="more-link">Meer &#62;</a>]]></description>
			<content:encoded><![CDATA[<p>This morning when I started Visual Studio 2010 it threw a wobbly at me. It seemed the Microsoft.VisualStudio.TeamFoundation.VersionControl.HatPackage did not load correctly. Of course I tried to Google for this error but I was unable to find anything useful apart from trying to repair the Visual Studio installation. Fortunately I have the /Log option set in the shortcut so I had a logfile with the errors. Unfortunately, apart from the error that the package did not load the log contained nothing useful.</p>
<p>After trying a few times (hoping it would go away) there was one time where a dialog popped up with a reference to a file called VersionControl.config. Needless to say I clicked it away before I could actually read it but at least now I had a filename and a little more information.</p>
<p>The file is located in %UserProfile%\Local Settings\Application Data\Microsoft\Team Foundation\3.0\Cache and as Visual Studio told me, it contained nothing but garbage. As all Microsoft .config files contain XML I figured this to be the problem I deleted the file and restarted Visual Studio: problem solved!</p>
<p>So, if you happen to encounter the error:</p>
<pre>The 'Microsoft.VisualStudio.TeamFoundation.VersionControl.HatPackage, Microsoft.VisualStudio.TeamFoundation.VersionControl, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' package did not load correctly.</pre>
<p><a href="http://barad-dur.nl/wp-content/uploads/2011/11/hatpackage-fail.png" rel="lightbox[204]"><img class="alignnone size-full wp-image-206" title="hatpackage-fail" src="http://barad-dur.nl/wp-content/uploads/2011/11/hatpackage-fail.png" alt="" width="618" height="149" /></a></p>
<p>You should check the VersionControl.config file before resorting to a Visual Studio reinstallation.</p>
]]></content:encoded>
			<wfw:commentRss>http://barad-dur.nl/net/vs2010-hatpackage-did-not-load-correctly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TFDP &#8211; T4 For Database Projects</title>
		<link>http://barad-dur.nl/net/c-4-0/tfdp-t4-for-database-projects/</link>
		<comments>http://barad-dur.nl/net/c-4-0/tfdp-t4-for-database-projects/#comments</comments>
		<pubDate>Mon, 05 Sep 2011 16:16:12 +0000</pubDate>
		<dc:creator>Sander</dc:creator>
				<category><![CDATA[C# 4.0]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[T4]]></category>
		<category><![CDATA[TFDP]]></category>
		<category><![CDATA[VS2010]]></category>
		<category><![CDATA[VSTDB]]></category>

		<guid isPermaLink="false">http://barad-dur.nl/?p=191</guid>
		<description><![CDATA[After working on this for some time, I&#8217;ve decided that it was time to publish TFDP to a wider audience. TFDP provides T4 template processing in Visual Studio 2010 database projects. Something that isn&#8217;t possible in the current versions. The extension can be found in the Visual Studio Gallery and on Codeplex.]]></description>
			<content:encoded><![CDATA[<p>After working on this for some time, I&#8217;ve decided that it was time to publish TFDP to a wider audience. TFDP provides T4 template processing in Visual Studio 2010 database projects. Something that isn&#8217;t possible in the current versions.</p>
<p>The extension can be found in the <a title="TFDP on the Visual Studio Gallery" href="http://visualstudiogallery.msdn.microsoft.com/c7ae9467-b464-405f-b01d-f6f97a595782" target="_blank">Visual Studio Gallery</a> and on <a title="TFDP on Codeplex" href="http://tfdp.codeplex.com/" target="_blank">Codeplex</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://barad-dur.nl/net/c-4-0/tfdp-t4-for-database-projects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Export Locals</title>
		<link>http://barad-dur.nl/net/export-locals/</link>
		<comments>http://barad-dur.nl/net/export-locals/#comments</comments>
		<pubDate>Wed, 11 May 2011 06:00:09 +0000</pubDate>
		<dc:creator>Sander</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[C# 4.0]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://barad-dur.nl/?p=174</guid>
		<description><![CDATA[Introduction: In this forum thread (warning: Dutch) someone was complaining that it&#8217;s not really easy to export the contents of the Locals debug window to a XML file. I&#8217;ve neved had the need for that myself but I thought, it can&#8217;t be that hard. Turns out it isn&#8217;t. I&#8217;ve written a VS2010 add-in that adds <a href="http://barad-dur.nl/net/export-locals/" class="more-link">Meer &#62;</a>]]></description>
			<content:encoded><![CDATA[<h2>Introduction:</h2>
<p>In this <a href="http://gathering.tweakers.net/forum/list_message/36005948#36005948" target="_blank">forum thread</a> (warning: Dutch) someone was complaining that it&#8217;s not really easy to export the contents of the Locals debug window to a XML file. I&#8217;ve neved had the need for that myself but I thought, it can&#8217;t be that hard. Turns out it isn&#8217;t.</p>
<p>I&#8217;ve written a VS2010 add-in that adds a menu item to the Tools menu in Visual Studio that will export all the locals for the current stack frame and open the XML file in Visual Studio. As always a picture says more than a thousand words so see for yourself:</p>
<p>A program in debug mode, notice the Locals window in the left bottom:</p>
<p><a href="http://barad-dur.nl/wp-content/uploads/2011/05/debug1.png" rel="lightbox[174]"><img class="alignnone size-medium wp-image-175" title="debug1" src="http://barad-dur.nl/wp-content/uploads/2011/05/debug1-300x204.png" alt="" width="300" height="204" /></a></p>
<p>Export the locals via the menu option:</p>
<p><a href="http://barad-dur.nl/wp-content/uploads/2011/05/debug2.png" rel="lightbox[174]"><img class="alignnone size-medium wp-image-176" title="debug2" src="http://barad-dur.nl/wp-content/uploads/2011/05/debug2-300x204.png" alt="" width="300" height="204" /></a></p>
<p>The exported XML document is opened in Visual Studio:</p>
<p><a href="http://barad-dur.nl/wp-content/uploads/2011/05/debug3.png" rel="lightbox[174]"><img class="alignnone size-medium wp-image-177" title="debug3" src="http://barad-dur.nl/wp-content/uploads/2011/05/debug3-300x204.png" alt="" width="300" height="204" /></a></p>
<p>For now it will export to 2 levels deep, any more than that will make it incredibly slow.</p>
<h2>Downloads:</h2>
<p>The VSIX can be downloaded here: <a href="http://barad-dur.nl/wp-content/uploads/2011/05/ExportLocals.vsix">ExportLocals.vsix</a></p>
<p>The sources can be downloaded here: <a href="http://barad-dur.nl/wp-content/uploads/2011/05/ExportLocals.zip">ExportLocals.zip</a></p>
<p>Or you can install the add in via the <a href="http://visualstudiogallery.msdn.microsoft.com/4f15c2aa-58f1-4323-b0f5-a2663142cd51" target="_blank">Visual Studio Gallery</a></p>
]]></content:encoded>
			<wfw:commentRss>http://barad-dur.nl/net/export-locals/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

