<?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>Visual Studio Hacks &#187; Tips</title>
	<atom:link href="http://visualstudiohacks.com/category/tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://visualstudiohacks.com</link>
	<description></description>
	<lastBuildDate>Mon, 23 Nov 2009 23:09:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Double-clicking a VS2005 Solution in Vista</title>
		<link>http://visualstudiohacks.com/tips/double-clicking-a-vs2005-solution-in-vista/</link>
		<comments>http://visualstudiohacks.com/tips/double-clicking-a-vs2005-solution-in-vista/#comments</comments>
		<pubDate>Mon, 12 Jan 2009 04:58:59 +0000</pubDate>
		<dc:creator>dstokes</dc:creator>
				<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://vsh.infozerk.net/?p=162</guid>
		<description><![CDATA[Even though Visual Studio 2008 has been released for over a year and 2010 is already in CTP, there is still quite a bit of development that happens on Visual Studio 2005.&#160; Most developers know [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Even though Visual Studio 2008 has been released for over a year and 2010 is already in CTP, there is still quite a bit of development that happens on Visual Studio 2005.&nbsp; Most developers know that Visual Studio 2005 (devenv.exe) needs to run with Administrator privileges in Windows Vista.&nbsp; Modifying the shortcut for Visual Studio 2005 once can take care of that.&nbsp; </p>
<p>If you are a &#8220;launch Visual Studio and then select the solution to load&#8221; type of person, this configuration will do just fine.&nbsp; However, if you are a &#8220;double-click the solution file in windows explorer&#8221; type person you might have noticed something lacking for VS2005 solutions.&nbsp; In Vista, by default, double-clicking on a Visual Studio 2005 solution file does &#8211; well &#8211; absolutely nothing.&nbsp; Unless you count the brief swirl of the hour-glass replacement.</p>
<p>The reason for this is the program that is executed when double-clicking on a solution file is the Visual Studio Launcher.&nbsp; The sole purpose of the Visual Studio Launcher, as far I can tell, is to launch the correct version of Visual Studio based upon the metadata found in the solution file.&nbsp; Since Visual Studio 2005 needs to run as Administrator, the Visual Studio Launcher will need to run with the same privileges in order to launch it.</p>
<p>You will find the launcher at&lt;Program Files&gt;\Common Files\microsoft shared\MSEnv\VSLauncher.exe.&nbsp; Right-click on the that file and set the file to run as Administrator.</p>
<p><a href="http://visualstudiohacks.com/files/media/image/WindowsLiveWriter/DoubleclickingaVS2005SolutioninVista_E001/VSLauncherProps_4.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="478" alt="VSLauncherProps" src="http://visualstudiohacks.com/files/media/image/WindowsLiveWriter/DoubleclickingaVS2005SolutioninVista_E001/VSLauncherProps_thumb_1.png" width="377" border="0"></a> </p>
<p>Afterwards, double-clicking on a VS2005 solution file will launch the IDE as expected.</p>
]]></content:encoded>
			<wfw:commentRss>http://visualstudiohacks.com/tips/double-clicking-a-vs2005-solution-in-vista/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Save time at startup by skipping the splash</title>
		<link>http://visualstudiohacks.com/tips/save-time-at-startup-by-skipping-the-splash/</link>
		<comments>http://visualstudiohacks.com/tips/save-time-at-startup-by-skipping-the-splash/#comments</comments>
		<pubDate>Mon, 05 Jan 2009 06:11:57 +0000</pubDate>
		<dc:creator>dstokes</dc:creator>
				<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://vsh.infozerk.net/?p=158</guid>
		<description><![CDATA[Visual Studio, by default, displays a splash screen at startup.&#160; The splash screen displays branding information for Visual Studio and also includes information (if supplied) for all packages installed.
This information can take time to display [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Visual Studio, by default, displays a splash screen at startup.&nbsp; The splash screen displays branding information for Visual Studio and also includes information (if supplied) for all packages installed.</p>
<p>This information can take time to display and many developers do not wish to see this each time Visual Studio is started, preferring instead to get right to the job at hand.</p>
<p>The display of the splash screen can be turned off by passing the /nosplash parameter to devenv.exe.&nbsp; The shortcut for Visual Studio can be modified so this happens automatically.</p>
<p>Some developers have told me they see up to a 10 second difference.&nbsp; The difference on my machine seems like a second or two at most but your mileage will vary based on the speed of your machine.&nbsp; At a minimum you can skip it if you are not interested in seeing it any longer.</p>
]]></content:encoded>
			<wfw:commentRss>http://visualstudiohacks.com/tips/save-time-at-startup-by-skipping-the-splash/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Fixing the VS2010 CTP Expiration problem</title>
		<link>http://visualstudiohacks.com/tips/fixing-the-vs2010-ctp-expiration-problem/</link>
		<comments>http://visualstudiohacks.com/tips/fixing-the-vs2010-ctp-expiration-problem/#comments</comments>
		<pubDate>Sun, 28 Dec 2008 08:04:30 +0000</pubDate>
		<dc:creator>dstokes</dc:creator>
				<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://vsh.infozerk.net/?p=154</guid>
		<description><![CDATA[For those of you that have downloaded the Visual Studio 2010 CTP, you might have noticed that it will expire within a few days.&#160; The fix for this is simple and Jeff Beehler has a [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>For those of you that have downloaded the Visual Studio 2010 CTP, you might have noticed that it will expire within a few days.&nbsp; The fix for this is simple and Jeff Beehler has a good post that is easy to follow.&nbsp; In case you missed it from the link blog, here it is:</p>
<p><a title="http://blogs.msdn.com/jeffbe/archive/2008/12/09/dealing-with-the-team-system-2010-ctp-expiration.aspx" href="http://blogs.msdn.com/jeffbe/archive/2008/12/09/dealing-with-the-team-system-2010-ctp-expiration.aspx">http://blogs.msdn.com/jeffbe/archive/2008/12/09/dealing-with-the-team-system-2010-ctp-expiration.aspx</a></p>
<p>You need to de-couple the system clock on your machine from the system clock in the VPC image.&nbsp; </p>
]]></content:encoded>
			<wfw:commentRss>http://visualstudiohacks.com/tips/fixing-the-vs2010-ctp-expiration-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Saving the Find Results</title>
		<link>http://visualstudiohacks.com/tips/saving-the-find-results/</link>
		<comments>http://visualstudiohacks.com/tips/saving-the-find-results/#comments</comments>
		<pubDate>Mon, 22 Dec 2008 08:29:45 +0000</pubDate>
		<dc:creator>dstokes</dc:creator>
				<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://vsh.infozerk.net/?p=152</guid>
		<description><![CDATA[This is a quick tip that I only noticed recently.&#160; Visual Studio has the ability to save the contents in the Find Results tool window to a file.&#160; When the Find Results tool window has [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>This is a quick tip that I only noticed recently.&nbsp; Visual Studio has the ability to save the contents in the Find Results tool window to a file.&nbsp; When the Find Results tool window has focus, select File &#8211; Save Find Results from the Visual Studio main menu.</p>
<p><a href="http://visualstudiohacks.com/files/media/image/WindowsLiveWriter/SavingtheFindResults_8E0C/savefindresultsmenu_2.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="273" alt="savefindresultsmenu" src="http://visualstudiohacks.com/files/media/image/WindowsLiveWriter/SavingtheFindResults_8E0C/savefindresultsmenu_thumb.png" width="177" border="0"></a> </p>
<p>Unfortunately, this is not available for the Find Symbols tool window.&nbsp; My guess as to why this would be is that the Find Symbols tool window contains images as well as text but this is just a guess.</p>
<p>By the way, the Output tool window has the same functionality which also comes in handy from time to time.</p>
<p><a href="http://visualstudiohacks.com/files/media/image/WindowsLiveWriter/SavingtheFindResults_8E0C/saveoutputwindow_2.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="272" alt="saveoutputwindow" src="http://visualstudiohacks.com/files/media/image/WindowsLiveWriter/SavingtheFindResults_8E0C/saveoutputwindow_thumb.png" width="176" border="0"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://visualstudiohacks.com/tips/saving-the-find-results/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Cleaning up the VS Environment when things go wrong</title>
		<link>http://visualstudiohacks.com/tips/cleaning-up-the-vs-environment-when-things-go-wrong/</link>
		<comments>http://visualstudiohacks.com/tips/cleaning-up-the-vs-environment-when-things-go-wrong/#comments</comments>
		<pubDate>Fri, 19 Dec 2008 08:11:38 +0000</pubDate>
		<dc:creator>dstokes</dc:creator>
				<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://vsh.infozerk.net/?p=149</guid>
		<description><![CDATA[On the MSDN forums, I see many questions on how to reset either the menus or the visible commands in Visual Studio.&#160; A related issue I see quite a bit is how to correct problems [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>On the MSDN forums, I see many questions on how to reset either the menus or the visible commands in Visual Studio.&nbsp; A related issue I see quite a bit is how to correct problems that occur when a Visual Studio package has not installed/uninstalled properly.&nbsp; The following 2 tips fix these issues for most people.</p>
<p><strong>Resetting your environment back to the beginning</strong></p>
<p>From the main menu, select &#8220;Tools &#8211; Import and Export Settings&#8230;&#8221;.&nbsp; The last radio button gives you the option to reset to the default settings.</p>
<p><a href="http://visualstudiohacks.com/files/media/image/WindowsLiveWriter/CleaninguptheVSEnvironmentwhenthingsgowr_80F4/settingsdialog_4.png"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="428" alt="settingsdialog" src="http://visualstudiohacks.com/files/media/image/WindowsLiveWriter/CleaninguptheVSEnvironmentwhenthingsgowr_80F4/settingsdialog_thumb_1.png" width="480" border="0"></a> </p>
<p>After selecting this option and pressing Next, you are given the option of saving your existing settings to a file (which can later be importing using the second option on the Import and Export Settings dialog above.</p>
<p><a href="http://visualstudiohacks.com/files/media/image/WindowsLiveWriter/CleaninguptheVSEnvironmentwhenthingsgowr_80F4/choosedefaultsettings_2.png"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="429" alt="choosedefaultsettings" src="http://visualstudiohacks.com/files/media/image/WindowsLiveWriter/CleaninguptheVSEnvironmentwhenthingsgowr_80F4/choosedefaultsettings_thumb.png" width="481" border="0"></a> </p>
<p>Finally, you are given the option to select the new environment settings.&nbsp; Afterwards, any commands that have gone missing from your original environment or any strange window docking settings should be back to normal.</p>
<p><strong>devenv.exe /setup</strong></p>
<p>Running the command &#8220;devenv.exe /setup&#8221; causes Visual Studio to re-merge all windows and command settings for packages that have been installed.&nbsp; If a Visual Studio package has not installed/uninstalled properly, I have had good luck correcting problems with my environment by running this command.&nbsp; At the very least, it is a good option to try before reinstalling Visual Studio.</p>
<p>Running the command is easy.&nbsp; Open the Visual Studio command window (Start Menu &#8211; Visual Studio 2008 &#8211; Visual Studio Tools &#8211; Visual Studio 2008 Command Prompt) and run devenv.exe /setup.&nbsp; The command could run for a few minutes (or even several minutes).&nbsp; The length will be determined by how many and which packages you have installed.&nbsp; </p>
<p>Hopefully these two options might help you solve weird Visual Studio environment problems that you come across and prevent you from having to reinstall the IDE (saving time is a good thing).</p>
]]></content:encoded>
			<wfw:commentRss>http://visualstudiohacks.com/tips/cleaning-up-the-vs-environment-when-things-go-wrong/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>When /ResetAddin Doesn&#8217;t Quite Cut It</title>
		<link>http://visualstudiohacks.com/tips/when-resetaddin-doesnt-quite-cut-it/</link>
		<comments>http://visualstudiohacks.com/tips/when-resetaddin-doesnt-quite-cut-it/#comments</comments>
		<pubDate>Sun, 03 Aug 2008 13:38:08 +0000</pubDate>
		<dc:creator>dstokes</dc:creator>
				<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://vsh.infozerk.net/?p=118</guid>
		<description><![CDATA[When developing Visual Studio Add-Ins, one of the first handy tips you will need is /ResetAddin.&#160; The syntax goes like this:
devenv.exe /ResetAddin &#60;namespace.addinclass&#62;

This command will remove all registered commands for a VS add-in and will [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>When developing Visual Studio Add-Ins, one of the first handy tips you will need is /ResetAddin.&nbsp; The syntax goes like this:</p>
<blockquote><p>devenv.exe /ResetAddin &lt;namespace.addinclass&gt;</p>
</blockquote>
<p>This command will remove all registered commands for a VS add-in and will remove any tool window settings as well.&nbsp; The problem is that occasionally this will not remove everything you need.&nbsp; One example of this is when an exception is thrown from a command handler all the way back to Visual Studio.</p>
<p>This is very bad form for an add-in developer, but it usually happens early in your development process at least once or twice and Visual Studio will effectively quarantine your add-in.&nbsp; I&#8217;ve run across a few instances where /ResetAddin would not fix the situation and I had to take the following steps to get the add-in to run again:</p>
<ol>
<li>Remove your .addin file and add-in assembly from the install location (This is usually &#8220;Documents and Settings\User\My Documents\Visual Studio 200x\AddIns&#8221; for most people during development on XP).
<li>devenv.exe /ResetAddin &lt;namespace.addinclass&gt;
<li>Start Visual Studio without replacing your add-in files and then shutdown Visual Studio.
<li>Replace your .addin file and add-in assembly and startup Visual Studio as usual.</li>
</ol>
<p>Additionally, you should add the appropriate exception handling code to your command handler before proceeding so you won&#8217;t have to repeat this again but following the above steps should get everything back to normal.</p>
]]></content:encoded>
			<wfw:commentRss>http://visualstudiohacks.com/tips/when-resetaddin-doesnt-quite-cut-it/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Quickly Navigate Code with the Code Definition Window</title>
		<link>http://visualstudiohacks.com/tips/quickly-navigate-code-with-the-code-definition-window/</link>
		<comments>http://visualstudiohacks.com/tips/quickly-navigate-code-with-the-code-definition-window/#comments</comments>
		<pubDate>Sun, 29 Jun 2008 14:34:29 +0000</pubDate>
		<dc:creator>dstokes</dc:creator>
				<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://vsh.infozerk.net/?p=98</guid>
		<description><![CDATA[There are a few hidden gems in Visual Studio that are easy to overlook.&#160; One of those is the Code Definition Window (ctrl+\,ctrl+d or View &#8211; Code Definition Window).
The Code Definition Window will work in [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>There are a few hidden gems in Visual Studio that are easy to overlook.&nbsp; One of those is the Code Definition Window (ctrl+\,ctrl+d or View &#8211; Code Definition Window).</p>
<p>The Code Definition Window will work in two different ways.&nbsp; The first is with your current code editing window.&nbsp; As you navigate your code, the Code Definition Window will display the definition of the objects currently under your cursor.&nbsp; For instance, if your cursor is currently over a class level variable, the Code&nbsp; Definition Window will display the location in the source file where the variable is declared.&nbsp; The same goes for methods and classes both within the current source file and in other source files within your current solution.</p>
<p>The second way the Code Definition Window can work is in conjunction with the Visual Studio Class View Window (ctrl+shift+c or View &#8211; Class View).&nbsp; The Class View Window is a handy tool window in its own right, giving a quick overview of the object model of the current solution and allowing fast navigation through namespaces, classes, and methods.&nbsp; If you double click on a method in the Class View Window, Visual Studio will open the appropriate source code file and scroll to that particular method.&nbsp; This is quite useful for larger projects and for projects that might have multiple class definitions in each file.&nbsp; However, if you single click on a method, the contents of that method will show in the Code Definition Window without opening the file in a text editing window.&nbsp; </p>
<p>I hope this tip helps you out and adds another tool to your Visual Studio code editing arsenal.</p>
]]></content:encoded>
			<wfw:commentRss>http://visualstudiohacks.com/tips/quickly-navigate-code-with-the-code-definition-window/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>The Dreaded No Such Interface Supported Error</title>
		<link>http://visualstudiohacks.com/tips/the-dreaded-no-such-interface-supported-error/</link>
		<comments>http://visualstudiohacks.com/tips/the-dreaded-no-such-interface-supported-error/#comments</comments>
		<pubDate>Tue, 24 Jun 2008 13:33:44 +0000</pubDate>
		<dc:creator>dstokes</dc:creator>
				<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://vsh.infozerk.net/?p=94</guid>
		<description><![CDATA[If you are like me, the wizards provided by Visual Studio usually get ignored shortly after you learn the details of developing a given project type.&#160; The downside of that is that I might be [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>If you are like me, the wizards provided by Visual Studio usually get ignored shortly after you learn the details of developing a given project type.&nbsp; The downside of that is that I might be giving up some little tidbits that the templates take care of for me and are easy for forget.</p>
<p>It seems that when I start development of a new Visual Studio Add-In project (without using the conveniently supplied templates) I always forget one thing and get the following error the first time I deploy:</p>
<p><a href="http://visualstudiohacks.com/files/media/image/WindowsLiveWriter/TheDreadedNoSuchInterfaceSupportedError_D76C/nointerfaceerror_2.png"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="168" alt="nointerfaceerror" src="http://visualstudiohacks.com/files/media/image/WindowsLiveWriter/TheDreadedNoSuchInterfaceSupportedError_D76C/nointerfaceerror_thumb.png" width="839" border="0"></a> </p>
<p>If you are using C#, the No such interface supported error might make you think immediately of a .Net interface type that Visual Studio is looking for and you have not implemented.&nbsp; I have spent a good deal of time trying to find the problem in my code, when actually the solution is quite simple and is not even in my code at all.</p>
<p>Visual Studio is not a .Net application.&nbsp; It is a native application and exposes its extensibility via COM.&nbsp; The interface that Visual Studio is complaining about is not a .Net interface, but rather a COM interface.&nbsp; Specifically, the IDTExtensibility2 COM interface.&nbsp; </p>
<p>I never seem to have a problem remembering to implement IDTExtensibility2.&nbsp; After all, this interface is the core interface for Add-In development.&nbsp; The one thing I always forget is to make the assembly that implements this interface COM-Visible.&nbsp; In case you have not had to deal with COM interop, this is easy to do and is accomplished via the Assembly Information dialog box (Application tab for the Project Properties).</p>
<p><a href="http://visualstudiohacks.com/files/media/image/WindowsLiveWriter/TheDreadedNoSuchInterfaceSupportedError_D76C/comvisible_2.png"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="305" alt="comvisible" src="http://visualstudiohacks.com/files/media/image/WindowsLiveWriter/TheDreadedNoSuchInterfaceSupportedError_D76C/comvisible_thumb.png" width="320" border="0"></a> </p>
<p>If you do not mark your assembly as COM-Visible, Visual Studio will not be able to find the IDTExtensiblity2 interface.&nbsp; Hence the dreaded &#8220;No such interface supported&#8221; error message.</p>
]]></content:encoded>
			<wfw:commentRss>http://visualstudiohacks.com/tips/the-dreaded-no-such-interface-supported-error/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Add an existing file to a project without copying it.</title>
		<link>http://visualstudiohacks.com/options/add-an-existing-file-to-a-project-without-copying-it/</link>
		<comments>http://visualstudiohacks.com/options/add-an-existing-file-to-a-project-without-copying-it/#comments</comments>
		<pubDate>Tue, 18 Mar 2008 04:44:20 +0000</pubDate>
		<dc:creator>dstokes</dc:creator>
				<category><![CDATA[Options]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://vsh.infozerk.net/?p=57</guid>
		<description><![CDATA[A few months ago, I posted an article on my blog explaining Versioning Multiple Assemblies by changing one partial AssemblyInfo file.
Periodically, I get email asking how to add an existing file without having Visual Studio [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>A few months ago, I posted an article on my blog explaining <a href="http://blog.darrenstokes.com/2007/12/17/ease-versioning-multiple-assemblies-by-splitting-up-assemblyinfo/">Versioning Multiple Assemblies by changing one partial AssemblyInfo file</a>.</p>
<p>Periodically, I get email asking how to add an existing file without having Visual Studio copy the file into the project directory, which is the default behavior.</p>
<p>If you want to add an existing file to a project and have the project point to the file where it resides, press the little arrow key on the right side of the add button on the add existing dialog.&nbsp; The arrow will present a small context menu that allows the option of adding the file as a link, which will cause the Visual Studio project to point to that file where it is instead of copying it to the project directory.</p>
<p><a href="http://visualstudiohacks.com/files/media/image/WindowsLiveWriter/Addanexistingfiletoaprojectwithoutcopyi_5AB1/addexisting_2.png"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="363" alt="addexisting" src="http://visualstudiohacks.com/files/media/image/WindowsLiveWriter/Addanexistingfiletoaprojectwithoutcopyi_5AB1/addexisting_thumb.png" width="476" border="0"></a> </p>
<p>-Darren</p>
]]></content:encoded>
			<wfw:commentRss>http://visualstudiohacks.com/options/add-an-existing-file-to-a-project-without-copying-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing the My Projects folder location (and other settings) in SSMS</title>
		<link>http://visualstudiohacks.com/options/changing-the-my-projects-folder-location-and-other-settings-in-ssms/</link>
		<comments>http://visualstudiohacks.com/options/changing-the-my-projects-folder-location-and-other-settings-in-ssms/#comments</comments>
		<pubDate>Mon, 17 Mar 2008 18:38:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Options]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://vsh.infozerk.net/?p=56</guid>
		<description><![CDATA[One thing that has constantly annoyed me with SQL Server Management Studio is the My Projects folder (which is often the default folder when opening or saving files) is set to \My Documents\SQL Server Management [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>One thing that has constantly annoyed me with SQL Server Management Studio is the My Projects folder (which is often the default folder when opening or saving files) is set to \My Documents\SQL Server Management Studio\Projects and there appears to be no way to change it. If you go into Tools -&gt; Options you won&#8217;t find anywhere that you can change this setting.</p>
<p>SQL Server Management Studio (SSMS) uses the Visual Studio Shell, so there has to be a way to change these settings, just not through the UI. The settings are stored in an .vssettings XML file in My Documents\SQL Server Management Studio\Settings folder. Make sure you close SSMS before making changes to this file, SSMS writes to it when you close the application and will overwrite any changes you make. To change the My Projects folder you are looking for this line:</p>
<p>&lt;PropertyValue name=&quot;ProjectsLocation&quot;&gt;%vsspv_user_documents%\My Projects&lt;/PropertyValue&gt;</p>
<p>The value inside is the location of the &quot;My Projects&quot; folder. Simply change the value, and the next time you open SSMS the &quot;My Projects&quot; folder will be mapped.</p>
<p>If you peruse this file you will see many other settings you can change, I would just caution you to make a backup of the file before changing too much.</p>
<p>-James</p>
<p><a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fvisualstudiohacks.com%2ftips%2foptions%2fchanging-the-my-projects-folder-location-and-other-settings-in-ssms%2f"><img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fvisualstudiohacks.com%2ftips%2foptions%2fchanging-the-my-projects-folder-location-and-other-settings-in-ssms%2f" border="0" alt="kick it on DotNetKicks.com" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://visualstudiohacks.com/options/changing-the-my-projects-folder-location-and-other-settings-in-ssms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
