{"id":55,"date":"2009-01-20T23:26:56","date_gmt":"2009-01-21T06:26:56","guid":{"rendered":"http:\/\/jameskovacs.com\/2009\/01\/21\/Installing+ReSharper+45+In+An+Experimental+Visual+Studio+Hive"},"modified":"2009-01-20T23:26:56","modified_gmt":"2009-01-21T06:26:56","slug":"installing-resharper-45-in-an-experimental-visual-studio-hive","status":"publish","type":"post","link":"https:\/\/www.jameskovacs.com\/index.php\/2009\/01\/20\/installing-resharper-45-in-an-experimental-visual-studio-hive\/","title":{"rendered":"Installing ReSharper 4.5 in an Experimental Visual Studio Hive"},"content":{"rendered":"<p>Visual Studio 2008 SP1 and ReSharper 4.1 were happily running and helping me develop software, but I wanted to try out the early drops of ReSharper 4.5, which you can find <a href=\"http:\/\/www.jetbrains.net\/confluence\/display\/ReSharper\/ReSharper+4.5+Nightly+Builds\">here<\/a>. I didn\u2019t want to disturb my existing install. So I went looking for a way to run ReSharper 4.1 and 4.5 side-by-side. JetBrains provides the following installation notes, which gave a glimmer of hope.<\/p>\n<p><a href=\"http:\/\/www.jetbrains.net\/confluence\/display\/ReSharper\/Installation+Notes+for+ReSharper\">http:\/\/www.jetbrains.net\/confluence\/display\/ReSharper\/Installation+Notes+for+ReSharper<\/a><\/p>\n<p>Let me start off by saying that I don\u2019t have any meaningful experience building add-ins for Visual Studio. Everything below was gleaned from JetBrains and MSDN documents. Having gone through the trouble, I wouldn\u2019t recommend this approach due to certain \u2013 apparently inherent &#8211; limitations. (The biggest limitation is that you can only run Visual Studio from the experimental hive as an administrator. The RANU switches might give you a glimmer of hope, but JetBrains would have to update its install utility to support it, as far as I can tell.)<\/p>\n<p>Honestly, turn back now! It\u2019s not worth the trouble. If you\u2019re really concerned about the cleanliness of your Visual Studio install, I would recommend installing VS2008 and ReSharper 4.5 in a virtual machine. If not, then I would recommend uninstalling ReSharper 4.1, installing ReSharper 4.5, and tolerating any glitches in the early builds. The occasional glitch is probably going to be less annoying than the instructions below! <\/p>\n<p><strong>Remember:<\/strong> ReSharper 4.5 builds are daily builds of a product that is in active development. JetBrains is very upfront about the quality of builds on their daily builds page. Whichever method you choose \u2013 experimental hive or regular install \u2013 be prepared to upgrade to a later build on at least a weekly or biweekly basis.<\/p>\n<p>Oh, you\u2019re still here. I guess you really want to know about how to install ReSharper into an experimental Visual Studio hive. Don\u2019t say I didn\u2019t warn you.<\/p>\n<p>Let\u2019s take a journey into the black art of Visual Studio add-in development\u2026 If you\u2019re developing an add-in for Visual Studio, how the heck do you develop and debug it safely. How do you develop in one copy of Visual Studio and use it to debug another copy of Visual Studio running your plug-in? You use experimental Visual Studio hives. Visual Studio hives are areas of the Windows registry that Visual Studio uses to store configuration information. Visual Studio uses the key HKLM\\SOFTWARE\\[Wow6432Node]\\Microsoft\\VisualStudio\\9.0 to store its default hive. (If you\u2019re running 64-bit Windows, configuration information is stored beneath the Wow6432Node because Visual Studio 2008 is a 32-bit program. If you\u2019re running 32-bit Windows, the registry path doesn\u2019t contain the Wow6432Node.) If you install into an experimental hive, a suffix is appended to the registry path. For example, we\u2019ll be using an experimental hive called ReSharper. So the registry path is HKLM\\SOFTWARE\\[Wow6432Node]\\Microsoft\\VisualStudio\\9.0ReSharper. When you launch Visual Studio, you can direct it to the default hive (launch VS normally) or an experimental hive via:<\/p>\n<p>devenv \/RootSuffix ReSharper<\/p>\n<p>You can have as many experimental hives as you like. This leaves you free to try out different add-ins, ReSharper or otherwise, in a relatively isolated fashion. The choice of \u201cReSharper\u201d as my experimental hive name is completely arbitrary. I could just as easily called it Ickyickyickyickypatangzoopboing. (Bonus points if you can place the experimental hive name.) \ud83d\ude42<\/p>\n<p><strong>Please note <\/strong>that you\u2019ll be mucking around with your registry and in particular, your Visual Studio install. If things go really badly, you could have to re-install Visual Studio or even your OS. Probably not, but this is an unsupported install mode. Use the same care as directly editing your Windows Registry (which is essentially what you\u2019re doing). I\u2019m not responsible for any damage you may cause. No warranty express or implied. Do not wash in hot. Objects in mirror may be closer than they appear\u2026 <img decoding=\"async\" alt=\"smile_regular\" src=\"http:\/\/spaces.live.com\/rte\/emoticons\/smile_regular.gif\"><\/p>\n<p>You\u2019ll need to download the Visual Studio 2008 SDK 1.1 \u2013 the version of the SDK for Visual Studio 2008 SP1. (It would have been too easy to call it the Visual Studio 2008 SP1 SDK.) You can find it <a href=\"http:\/\/www.microsoft.com\/downloads\/details.aspx?FamilyID=59ec6ec3-4273-48a3-ba25-dc925a45584d&amp;DisplayLang=en\">here<\/a>. The SDK contains tools for managing experimental Visual Studio hives. The one that we\u2019ll need is called <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/cc138541.aspx\">VsRegEx<\/a>, which is a command line tool for creating, modifying, and deleting experimental Visual Studio hives. We\u2019ll be creating an experimental hive called ReSharper by copying our default hive.<\/p>\n<p>Open a Visual Studio 2008 Command Prompt as an administrator. (Shift-right-click on Visual Studio 2008 Command Prompt, Run as\u2026 Administrator.)<\/p>\n<p><code>cd C:\\Program Files (x86)\\Microsoft Visual Studio 2008 SDK\\VisualStudioIntegration\\Tools\\Bin <br \/>VsRegEx GetOrig 9.0 ReSharper<\/code><\/p>\n<p>Be patient. This might take a minute or two. (If you want to delete the experimental hive later, run \u201cVsRegEx Delete 9.0 ReSharper\u201d. Note the space between 9.0 and ReSharper.)<\/p>\n<p>Download and install your preferred daily build of ReSharper 4.5. <strong>IMPORTANT:<\/strong> When installing, make sure you disable all Visual Studio integration. We\u2019ll be performing the integration manually in the next step.<\/p>\n<p>Copying <a href=\"http:\/\/www.jetbrains.net\/confluence\/download\/attachments\/11798125\/InstallExperimentalHive.Proj?version=1\">InstallExperimentalHive.Proj<\/a> to the Bin directory of your ReSharper install location. (Mine is at C:\\Program Files (x86)\\JetBrains\\ReSharper\\v4.5\\Bin).<\/p>\n<p><code>cd C:\\Program Files (x86)\\JetBrains\\ReSharper\\v4.5\\Bin <br \/>msbuild InstallExperimentalHive.Proj \/t:Rebuild <br \/>devenv \/RootSuffix ReSharper \/Setup<\/code><\/p>\n<\/p>\n<p>Be patient. The last step might take a few minutes.<\/p>\n<p>Create a shortcut to &#8220;devenv \/RootSuffix ReSharper&#8221; on your desktop and mark the shortcut to run as an administrator. (Right-click the shortcut\u2026 Properties\u2026 Shortcut tab\u2026 Advanced\u2026 Run as administrator.) Double-click the shortcut and you should see:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"ReSharper 4.5 in Experimental Hive\" style=\"border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px\" height=\"477\" alt=\"ReSharper 4.5 in Experimental Hive\" src=\"\/wp-content\/uploads\/WindowsLiveWriter\/InstallingReSharper4.5inExperimentalMode_143CE\/WindowClipping%20(4)_3.png\" width=\"561\" border=\"0\"> <\/p>\n<p>So there you have it. ReSharper 4.5 running in an experimental Visual Studio hive. If you install a new daily build of ReSharper 4.5, you won\u2019t have to recreate the hive, but you may have to msbuild and devenv \/Setup steps above. Have fun with trying out ReSharper 4.5!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Visual Studio 2008 SP1 and ReSharper 4.1 were happily running and helping me develop software, but I wanted to try out the early drops of ReSharper 4.5, which you can find here. I didn\u2019t want to disturb my existing install. So I went looking for a way to run ReSharper 4.1 and 4.5 side-by-side. JetBrains [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-55","post","type-post","status-publish","format-standard","hentry","category-dotnettools"],"_links":{"self":[{"href":"https:\/\/www.jameskovacs.com\/index.php\/wp-json\/wp\/v2\/posts\/55","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jameskovacs.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jameskovacs.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jameskovacs.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jameskovacs.com\/index.php\/wp-json\/wp\/v2\/comments?post=55"}],"version-history":[{"count":0,"href":"https:\/\/www.jameskovacs.com\/index.php\/wp-json\/wp\/v2\/posts\/55\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.jameskovacs.com\/index.php\/wp-json\/wp\/v2\/media?parent=55"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jameskovacs.com\/index.php\/wp-json\/wp\/v2\/categories?post=55"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jameskovacs.com\/index.php\/wp-json\/wp\/v2\/tags?post=55"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}