<?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>code.commongroove.com &#187; Visual Studio</title>
	<atom:link href="http://code.commongroove.com/category/visual-studio/feed/" rel="self" type="application/rss+xml" />
	<link>http://code.commongroove.com</link>
	<description>C#, T-SQL, and general IT mojo</description>
	<lastBuildDate>Thu, 26 Jan 2012 03:00:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Visual Studio: Team Foundation Server: Workspace Already Exists Error</title>
		<link>http://code.commongroove.com/2011/01/07/visual-studio-team-foundation-server-workspace-already-exists-error/</link>
		<comments>http://code.commongroove.com/2011/01/07/visual-studio-team-foundation-server-workspace-already-exists-error/#comments</comments>
		<pubDate>Fri, 07 Jan 2011 19:01:14 +0000</pubDate>
		<dc:creator>Greg</dc:creator>
				<category><![CDATA[Team Foundation Server]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://code.commongroove.com/?p=219</guid>
		<description><![CDATA[Visual Studio: Team Foundation Error: "Workspace Already Exists" <a href="http://code.commongroove.com/2011/01/07/visual-studio-team-foundation-server-workspace-already-exists-error/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you ever have the joyous experience of having to revert back to Visual Studio 2005 and you are using Team Foundation Server as your source control system, you may encounter a workspace error message akin to &#8220;workspace already exists on computer&#8221;.</p>
<p>This is sometimes due to the cached settings on your system.  To clean this up, try the following:</p>
<div class="codecolorer-container dos default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:550px;"><div class="dos codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #b1b100; font-weight: bold;">SET</span> TFAppData=<span style="color: #33cc33;">%</span><span style="color: #448888;">USERPROFILE</span><span style="color: #33cc33;">%</span>\Local Settings\Application Data\Microsoft\Team Foundation<br />
<span style="color: #00b100; font-weight: bold;">IF</span> <span style="color: #000000; font-weight: bold;">EXIST</span> &quot;<span style="color: #33cc33;">%</span><span style="color: #448888;">TFAppData</span><span style="color: #33cc33;">%</span>\1.0\Cache&quot; <span style="color: #b1b100; font-weight: bold;">rd</span> /s /q &quot;<span style="color: #33cc33;">%</span><span style="color: #448888;">AppDataTF</span><span style="color: #33cc33;">%</span>\1.0\Cache&quot; <span style="color: #33cc33;">&amp;</span>gt; <span style="color: #0000ff; font-weight: bold;">NUL</span><br />
<span style="color: #00b100; font-weight: bold;">IF</span> <span style="color: #000000; font-weight: bold;">EXIST</span> &quot;<span style="color: #33cc33;">%</span><span style="color: #448888;">TFAppData</span><span style="color: #33cc33;">%</span>\2.0\Cache&quot; <span style="color: #b1b100; font-weight: bold;">rd</span> /s /q &quot;<span style="color: #33cc33;">%</span><span style="color: #448888;">AppDataTF</span><span style="color: #33cc33;">%</span>\2.0\Cache&quot; <span style="color: #33cc33;">&amp;</span>gt; <span style="color: #0000ff; font-weight: bold;">NUL</span><br />
<span style="color: #00b100; font-weight: bold;">IF</span> <span style="color: #000000; font-weight: bold;">EXIST</span> &quot;<span style="color: #33cc33;">%</span><span style="color: #448888;">TFAppData</span><span style="color: #33cc33;">%</span>\3.0\Cache&quot; <span style="color: #b1b100; font-weight: bold;">rd</span> /s /q &quot;<span style="color: #33cc33;">%</span><span style="color: #448888;">AppDataTF</span><span style="color: #33cc33;">%</span>\3.0\Cache&quot; <span style="color: #33cc33;">&amp;</span>gt; <span style="color: #0000ff; font-weight: bold;">NUL</span><br />
tf workspaces /s:http://mytfserver:8080/</div></div>
<p>Note: &#8220;tf.exe&#8221; must be in your path.  If not, just add the full path to the .exe.  Also, this currently shows cache paths for Visual Studio 2005, 2008, and 2010</p>
]]></content:encoded>
			<wfw:commentRss>http://code.commongroove.com/2011/01/07/visual-studio-team-foundation-server-workspace-already-exists-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Embed Resources into your .Net Projects</title>
		<link>http://code.commongroove.com/2007/11/02/embed-resources-into-your-net-projects/</link>
		<comments>http://code.commongroove.com/2007/11/02/embed-resources-into-your-net-projects/#comments</comments>
		<pubDate>Fri, 02 Nov 2007 00:10:03 +0000</pubDate>
		<dc:creator>Greg</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://code.commongroove.com/archive/2007/11/01/embed-resources-into-your-.net-projects.aspx</guid>
		<description><![CDATA[Worrying about file paths, locations, availability, and security of your project&#8217;s resource can be a real pain.  Fortunately, you can easily embed resources into your project&#8217;s DLL and reference them with ease from your code.  Here&#8217;s an example of how &#8230; <a href="http://code.commongroove.com/2007/11/02/embed-resources-into-your-net-projects/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Worrying about file paths, locations, availability, and security of your project&#8217;s resource can be a real pain.  Fortunately, you can easily embed resources into your project&#8217;s DLL and reference them with ease from your code.  Here&#8217;s an example of how to reference an embedded XSD:</p>
<p>First, to <span style="font-weight: bold;">embed the resource</span>, right click on the file and choose <span style="font-weight: bold;">Properties</span>.  Next, switch the <span style="font-weight: bold;">Build Action</span> on the file to <span style="font-weight: bold;">Embedded Resource</span>. Now, when you <span style="font-weight: bold;">compile </span>your project, your resource will be compiled into the DLL with the default namespace of the project/folder location of the file within your project, e.g. if your default namespace is example.project and you put the resource into a subfolder called Resources, you would reference the file as example.project.Resources.MySchema.xsd.</p>
<p>To reference your embedded resource from within your code, you use reflection:</p>
<p><span style="color: rgb(0, 128, 128);">Assembly</span>.GetExecutingAssembly().GetManifestResourceStream(<span style="color: rgb(128, 0, 0);">&#8220;example.project.MySchema.xsd&#8221;</span>)</p>
<p>which returns a <span style="color: rgb(0, 128, 128);">Stream<span style="color: rgb(0, 0, 0);">.  Finally, just use the <span style="color: rgb(0, 128, 128);">XmlSchema</span>.Read method to slurp in the stream and voila, you have your schema.<br />
</span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://code.commongroove.com/2007/11/02/embed-resources-into-your-net-projects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fix FireFox SLOWdown on Vista while Debugging localhost</title>
		<link>http://code.commongroove.com/2007/10/28/fix-firefox-slowdown-on-vista-while-debugging-localhost/</link>
		<comments>http://code.commongroove.com/2007/10/28/fix-firefox-slowdown-on-vista-while-debugging-localhost/#comments</comments>
		<pubDate>Sun, 28 Oct 2007 04:37:07 +0000</pubDate>
		<dc:creator>Greg</dc:creator>
				<category><![CDATA[FireFox]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://code.commongroove.com/archive/2007/10/27/fix-firefox-slowdown-on-vista-while-debugging-localhost.aspx</guid>
		<description><![CDATA[If you use FireFox to debug on Windows Vista, you most likely have noticed how ridiculously slow it is rendering localhost requests versus Internet Explorer.  No, this isn&#8217;t a conspiracy, just an issue with IPv6, FireFox, and Windows Vista. To &#8230; <a href="http://code.commongroove.com/2007/10/28/fix-firefox-slowdown-on-vista-while-debugging-localhost/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you use FireFox to debug on Windows Vista, you most likely have noticed how ridiculously slow it is rendering localhost requests versus Internet Explorer.  No, this isn&#8217;t a conspiracy, just an issue with IPv6, FireFox, and Windows Vista. </p>
<p>To fix this issue, do the following:</p>
<p>1) Open up <span style="font-weight: bold;">about:config</span> in your FireFox browser<br />
2) Filter or scroll down to <span style="font-weight: bold;">network.dns.disableIPv6</span> and set this value to <span style="font-weight: bold;">true</span><br />
3) Restart FireFox and you should be good to go!</p>
]]></content:encoded>
			<wfw:commentRss>http://code.commongroove.com/2007/10/28/fix-firefox-slowdown-on-vista-while-debugging-localhost/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Format Document &#8211; The Quick HTML and Code Organizer</title>
		<link>http://code.commongroove.com/2007/10/23/format-document-the-quick-html-and-code-organizer/</link>
		<comments>http://code.commongroove.com/2007/10/23/format-document-the-quick-html-and-code-organizer/#comments</comments>
		<pubDate>Tue, 23 Oct 2007 01:21:35 +0000</pubDate>
		<dc:creator>Greg</dc:creator>
				<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://code.commongroove.com/archive/2007/10/22/format-document-the-quick-html-and-code-organizer.aspx</guid>
		<description><![CDATA[I have encountered a lot of bad HTML formating in my days, and one quick way to organize the HTML files via Visual Studio 2005 is to use the Format Document option from the Edit menu. One thing about the &#8230; <a href="http://code.commongroove.com/2007/10/23/format-document-the-quick-html-and-code-organizer/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I have encountered a lot of bad HTML formating in my days, and one quick way to organize the HTML files via Visual Studio 2005 is to use the <span style="font-weight: bold;">Format Document</span> option from the Edit menu.</p>
<p>One thing about the default settings for Format Document (or Selection), is that it will wrap lines by default, which to me, can be undesirable.  To change this setting, go the <span style="font-weight: bold;">Tools</span> -> <span style="font-weight: bold;">Options</span> and then navigate the tree to <span style="font-weight: bold;">Text Editor</span> -> <span style="font-weight: bold;">HTML</span> -> <span style="font-weight: bold;">Format</span>, and uncheck the Tag Wrapping check box towards the bottom of the page.</p>
<p>Here too you can set any specific HTML tag format options you would like to use.  To do so, click the <span style="font-weight: bold;">Tag Specific Options</span> button in the same group box.</p>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://code.commongroove.com/2007/10/23/format-document-the-quick-html-and-code-organizer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Intellisense for MSBuild files</title>
		<link>http://code.commongroove.com/2007/09/27/enable-intellisense-for-msbuild-files/</link>
		<comments>http://code.commongroove.com/2007/09/27/enable-intellisense-for-msbuild-files/#comments</comments>
		<pubDate>Thu, 27 Sep 2007 00:59:34 +0000</pubDate>
		<dc:creator>Greg</dc:creator>
				<category><![CDATA[MS Build]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://code.commongroove.com/archive/2007/09/27/enable-intellisense-for-msbuild-files.aspx</guid>
		<description><![CDATA[To “enable” Intellisense for MSBuild projects ending with the extension “msbuild”: 1)      1) Add this registry key (no line break in the key): [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\Editors\ {412B8852-4F21-413B-9B47-0C9751D3EBFB}\Extensions]&#8220;msbuild&#8221;=dword:00000029 2)      Create a file called “test.msbuild” and then try to open it.  Choose “Select program &#8230; <a href="http://code.commongroove.com/2007/09/27/enable-intellisense-for-msbuild-files/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal"><strong style="">To “enable” Intellisense for MSBuild projects ending with the extension “msbuild”</strong>:</p>
<p style="text-indent: -0.25in;" class="MsoListParagraph"><!--[if !supportLists]--><span style=""><span style="">1)<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">      </span></span></span><!--[endif]-->1) Add this registry key (no line break in the key):</p>
<p class="MsoNormal" style="color: rgb(0, 0, 255); font-family: Courier New;">[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\Editors\<br />
{412B8852-4F21-413B-9B47-0C9751D3EBFB}\Extensions]&#8220;msbuild&#8221;=dword:00000029</p>
<p class="MsoNormal"><!--[if !supportLists]--><span style=""><span style="">2)<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">      </span></span></span><!--[endif]-->Create a file called “test.msbuild” and then try to open it.<span style="">  </span>Choose “Select program from list” and browse to VS2005 devenv.exe and check “Always use the selected”.<span style="">  </span>Click ok.  Once Visual Studio opens, you should have it!<span style="">  </span>(Since the XSD for MSBuild is already “known” by Visual studio.<span style="">  </span>Fyi – the file is located here: </p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%; font-family: 'Courier New'; color: blue;">\windows\Microsoft.NET\framework\v2.0.50727\Microsoft.Build.xsd<o:p /></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">a</span><span style="font-size: 10pt; line-height: 115%;">nd<o:p /></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%; font-family: 'Courier New'; color: blue;">\Program Files\Microsoft Visual Studio 8\xml\Schemas\1033<o:p /></span></p>
<p class="MsoNormal">there.</p>
<p>If you don&#8217;t like using the .msbuild extension, you can change it.  Just modify the registry key, changing &#8220;msbuild&#8221; to whatever extension you would like to use.</p>
]]></content:encoded>
			<wfw:commentRss>http://code.commongroove.com/2007/09/27/enable-intellisense-for-msbuild-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

