Remove Custom Project Template that was Automatically Imported

前端 未结 9 540
天命终不由人
天命终不由人 2021-02-02 10:46

I deleted the exported zip file that was placed in my exported templates folder and of course it still shows in Visual Studio\'s \"Add New Project\" dialog. I expected that but

相关标签:
9条回答
  • 2021-02-02 11:40

    In my case with Visual Studio 19 on Windows 10 it was this folder:

    %userprofile%\AppData\Roaming\Microsoft\VisualStudio[VS_VERSION]\ProjectTemplatesCache

    I deleted the template folder and voila!

    0 讨论(0)
  • 2021-02-02 11:43

    Templates are also stored in "My Documents\Visual Studio 2010\Templates". Under ProjectTemplates and ItemTemplates and so on depending on the language.

    EDIT: i just exported a project template. The zip file was created in 2 locations:

     My Documents\Visual Studio 2010\My Exported Templates\mytemplate.zip 
     My Documents\Visual Studio 2010\Templates\ProjectTemplates\mytemplate.zip
    

    deleting both of these also removed the choice from the new project dialog, so I'm not sure what's happening on your machine :(

    0 讨论(0)
  • 2021-02-02 11:43

    If you still see the unwanted templates displayed in the New Project... dialog, you have to delete (for Visual Studio 2013 Community) {program folder}\Common7\IDE\ItemTemplatesCache\cache.bin after deleting all the unwanted files as described above. Afterwards VS will rebuild the templates listing.

    0 讨论(0)
提交回复
热议问题