Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove/uninstall item templates in Visual Studio 2010

I have an item template that I did wrong and want to delete. I deleted the zip file from the output location and ran devenv /installvstemplates and devenv /setup and when I opened VS and tried to add a new item it was still there. stranger still, I can still use it and create copies of the file, so it must exist somewhere. Is there somewhere that visual studio stores the files after being installed that I need to delete? I also cant change the template, it stays the same no matter what I do.

Edit: If it makes a difference I am using XNA GS 4.0

like image 293
annonymously Avatar asked Nov 24 '11 02:11

annonymously


People also ask

How do I edit a Visual Studio template?

Use the Export Template Wizard Visual Studio provides an Export Template Wizard that can be used to update an existing template: Choose File > New > Project from the menu bar. Select the template that you want to update and continue through the steps to create the new project. Modify the project in Visual Studio.


1 Answers

There are several places the Visual Studio might store a template. Deleting the .zip file from any of the locations below should remove it from the list:

  • %LocalAppData%\Microsoft\VisualStudio\10.0\Extensions
  • %LocalAppData%\Microsoft\VisualStudio\10.0\ -> ProjectTemplatesCache_{xx}
  • %UserProfile%\My Documents\Visual Studio 2010\Templates

If the Template was installed via an extension, you can clear it out from the top directory above, or you can follow the official instructions:

Tools -> Extension Manager -> Installed Extensions -> Templates -> YourTemplate -> [Uninstall|Disable]

like image 76
KyleMit Avatar answered Oct 18 '22 03:10

KyleMit