Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Resetting Experimental instance of Visual Studio

I'm trying to develop extensions for Visual Studio and I'm going through some articles.

One key point of VS extension development is to reset experimental instance of Visual Studio, which I am having problem with.

For example, here is written that I should use following command to reset it (it is recommended also in Microsoft docs):

CreateExpInstance /Reset /VSInstance=12.0 /RootSuffix=Exp

I run command line and navigate to CreateExpInstance location and run this command (I tried with various versions: 12.0, 14.0, etc.).

However, I keep getting such response:

The Visual Studio Experimental instance directory C:\Users\Mi\AppData\Local\Microsoft\VisualStudio\10.0Exp does not exist. CreateExpInstance: warning : The Visual Studio directory C:\Users\Mi\AppData\Local\Microsoft\VisualStudio\10.0 does not exist. Created directory C:\Users\Mi\AppData\Local\Microsoft\VisualStudio\10.0Exp\Extensions. Press any key to continue . . .

Moreover, executing this keeps creating new experimental instances in my %localappdata%/Microsoft/VisualStudio directory

What am I doing wrong? Why my instance isn't getting reset? Or maybe this is how it should be?

like image 648
Michał Turczyn Avatar asked Mar 02 '19 13:03

Michał Turczyn


People also ask

How do I reset an experimental instance in Visual Studio?

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 .

What is experimental instance of Visual Studio?

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

How do I reset Visual Studio project settings?

Reset settings To change your development settings after you open Visual Studio for the first time, follow these steps: Select Tools > Import and Export Settings from the menu bar to open the Import and Export Settings Wizard. In the Import and Export Settings Wizard, select Reset all settings, and then select Next.


1 Answers

There are several shortcuts for each Visual Studio version that you can run like this:

C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Visual Studio 2017\Microsoft Visual Studio SDK\Tools\Reset the Visual Studio 2017 Experimental Instance.lnk
like image 55
Sergey Vlasov Avatar answered Sep 24 '22 06:09

Sergey Vlasov