How can I delete bad Visual Studio templates?

43,404

Solution 1

In Visual Studio: go to Tools > Extensions and Updates and then uninstall or disable the template.

Solution 2

To save a bit of time for 2010 users, the folder has moved:

...\My Documents\Visual Studio 2010\Templates\ProjectTemplates

Solution 3

For Visual Studio 2013, I found my template cache here:

%USERPROFILE%\AppData\Roaming\Microsoft\VisualStudio\12.0\ProjectTemplatesCache

Solution 4

Deleting them off of disk should do the trick. Where they exist will depend a bit on where you installed them. If you installed them for all users they will be at

%ProgramFiles%\Microsoft Visual studio 9.0\Common7\Ide\ProjectTemplatesCache

For a single user they will be at

%USERPROFILE%\Visual Studio 2008\Templates\ProjectTemplates

EDIT

If InstallVSTemplates fails, it is likely one of the following. The one I can't help with is some program randomly dumping files inside of the ProjectTemplatesCache directory.

The other more likely cause is there is a bad template in the ProjectTemplates directory. InstallVSTemplates really just goes through this directory, and unzips all of the files into the ProjectTemplatesCache directory. You will have to search through this directory and find the .zip file which contains the junk files being added to your project Once you find the file, delete it, delete ProjectTemplatesCache, and then re-run InstallVSTemplates.

Solution 5

After manually searching for some of the custom profile templates(.vstemplate),I found them at the following location:

%userprofile%\AppData\Local\Microsoft\VisualStudio\10.0\Extensions

It appears VS2010 installs some of the templates as extesions or the authors made it that way.I hope this helps someone.

May need to run "devenv /setup" at the run command to refresh the VS2010 after you delete the templates.

Share:
43,404
dance2die
Author by

dance2die

I like to read, and build(& break?) stuff. Currently helping folks out on r/reactjs & DEV#react. Reach out to me @dance2die & check out my blog on sung.codes

Updated on July 09, 2022

Comments

  • dance2die
    dance2die almost 2 years

    How do you remove the following noise templates that don't even work?

    enter image description here