Click here to Skip to main content
14,877,543 members
Articles / Visual Studio
Posted 23 Oct 2014

Tagged as


2 bookmarked

Resetting the Visual Studio Experimental Instance

Rate me:
Please Sign up or sign in to vote.
5.00/5 (7 votes)
23 Oct 2014CPOL2 min read
A quick guide on how to reset the Visual Studio Experimental instance environment


Recently, I got into developing a couple of extensions for Visual Studio. As many of you know, once you create Visual Studio Package project (or any VSIX project), by default your application will be set to start debugging in a Visual Studio Experimental instance.

To safeguard your Visual Studio development environment from untested extensions that might change it, the Visual Studio provides an alternative Visual Studio instance that you can use to experiment. You are going to develop new extensions by using Visual Studio as usual, but you will run them by using this experimental instance.

This behavior is set as default by the Visual Studio Package project template and you can see it in the following screenshot:

Image 1

As you can see, we are pointing to the Visual Studio executable (we can vary that parameter for testing our extension with different versions of Visual Studio) and we are passing the following command line arguments to it: /RootSuffix Exp.

This is sufficient to start Visual Studio in Experimental instance mode and once you hit F5 and start debugging, you will notice that the started instance of Visual Studio in the application title bar contains the "Experimental Instance" suffix.

Image 2

The default location of the experimental instance depends on the Visual Studio version number. For example, for Visual Studio 2013, the location is:

All the files in the directory location are considered part of that instance. Any additional experimental instances will not be loaded by Visual Studio unless the directory name is changed to the default location.

Till here all fine, but what happens once you have "ruined" your experimental instance environment?
Well, you will need to reset it. Although you can find all of this information on MSDN, it isn't linked or clear enough on how to proceed.

Resetting the Experimental Instance

Inside the C:\Program Files (x86)\Microsoft Visual Studio 12.0\VSSDK\VisualStudioIntegration\Tools\Bin folder, you will find a utility called CreateExpInstance. Open your command prompt and position yourself in just mentioned directory (this is the default path for Visual Studio 2013 SDK, the same applies also for Visual Studio 2012, just change your path accordingly).

All you need to do now is to execute the following command:
CreateExpInstance /Reset /VSInstance=12.0 /RootSuffix=Exp

Once the cleanup is performed, the next experimental instance you launch will find itself in a clean environment. In case you are working with Visual Studio 2012, change the VSInstance parameter to 11.0.

You can find more details about the CreateExpInstance utility here.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Mario Majčica
Software Developer (Senior)
Netherlands Netherlands
An accomplished software engineer specialized in object-oriented design and analysis on Microsoft .NET platform with extensive experience in the full life cycle of the software design process.
Experienced in agile software development via scrum and kanban frameworks supported by the TFS ALM environment and JIRA. In depth know how on all automation process leading to continuous integration, deployment and feedback.
Additionally, I have a strong hands-on experience on deploying and administering Microsoft Team Foundation Server (migrations, builds, deployment, branching strategies, etc.).

Comments and Discussions

Praisemy vote of 5 Pin
w.jian14-Sep-18 5:04
Memberw.jian14-Sep-18 5:04 
PraisePath for VS 2015 Pin
RenniePet12-May-16 6:07
MemberRenniePet12-May-16 6:07 
GeneralRe: Path for VS 2015 Pin
richnewman25-Apr-17 9:28
Memberrichnewman25-Apr-17 9:28 
QuestionPath information doesn't apply to Visual Studio 2010 Pin
NightOwl88817-Oct-15 10:20
MemberNightOwl88817-Oct-15 10:20 
GeneralMy vote of 5 Pin
theMadCoder28-Apr-15 9:02
MembertheMadCoder28-Apr-15 9:02 
GeneralMy vote of 5 Pin
Klaus Luedenscheidt23-Oct-14 19:04
MemberKlaus Luedenscheidt23-Oct-14 19:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.