+4  A: 

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.

JaredPar
I do not see them on those two specified locations. Weird.
Sung Meister
Try searching for a ProjectTemplatesCache directory under VisualStudio. It should be there starting with VS2005
JaredPar
"ProjectTemplatesCache" is there but when I deleted the folder, VS complains that there is no template for F# and only those noise templates show up...
Sung Meister
Let me try to reinstall F# again.
Sung Meister
@dance2die, hold on, don't re-install
JaredPar
@dance2die, I should have been clearer. I meant for you to delete those specific files from the ProjectTemplatesCache directory. It's not a big problem though. If you run the following command it will rebuild the directory devenv.exe /InstallVsTemplates
JaredPar
@Jared: Patience might have been a virtue but I have already reinstalled it...(and templates is back to normal) Let me see if those weird templates show up again later on. I will try to rebuild (which I didn't know of its existence) templates as you have suggested. Thank you.
Sung Meister
@Jared: It has happened again. It looks like after I run "Wise Registry Cleaner 4", those files show up as templates. I am trying to reinstall VS templates as you suggested.
Sung Meister
@Jared: Even reinstalling templates using "devenv.exe /InstallVsTemplates" did not fix the issue. It seems like whatever "Wise Registry Cleaner" did, it has messed up the template in a weird way.
Sung Meister
A: 
  • Delete the bad/unwanted project folders from

C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\ProjectTemplates

  • Clear cache

C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\ProjectTemplatesCache

  • Delete stuff from (perhaps not necessary)

C:\Users[Your User Name]\Documents\Visual Studio 2008\Templates\ProjectTemplates

and finally open Visual Studio 2008 Command Prompt as Administrator and run

devenv /installvstemplates

Andrei Drynov
+1  A: 

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

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

Rich L
I'm trying to remove custom templates from VS2010 and not finding the templates in any of these directories, including the one from @Rich L. How is VS2010 still listing these?
jlafay