Remove Custom Project Template that was Automatically Imported

前端 未结 9 536
天命终不由人
天命终不由人 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:25

    At least for VSIX templates, the official way using VS2010 simply works:

    Tools->Extension Manager...->Installed Extensions->Templates->$yourTemplate->[Uninstall|Disable]

    If that works for you in the first place, you don't have to mess around with different folder layouts.

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

    I was able to solve this problem for my Visual Studio Community 2017 by first deleting the template zip files in the following folders:

    %UserProfile%\Documents\Visual Studio 2017\Templates\ProjectTemplates
    %UserProfile%\Documents\Visual Studio 2017\My Exported Templates
    

    Then deleting the following folder:

    %UserProfile%\AppData\Roaming\Microsoft\VisualStudio\15.0_aed38a72\ProjectTemplatesCache
    

    (The identifier after "15.0_" might vary)

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

    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.

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

    if anyone need the answer for VS 2015 and Windows 7(I know) it's %UserProfile% \Documents\Visual Studio 2015\Templates\ProjectTemplates

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

    My OS Windows 8.1 and I use Visual Studio 2013.

    Here is the path of Custom Templates;

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

    For this case, my path of custom templates like;

    C:\Users\xxxxx\AppData\Roaming\Microsoft\VisualStudio\12.0\ProjectTemplatesCache
    
    0 讨论(0)
  • 2021-02-02 11:38

    Try looking under %userprofile%\Application Data\Microsoft\VisualStudio\10.0\ProjectTemplatesCache. This is where the unzipped cache of the template would usually be stored. If it isn't there, try searching for a folder named ProjectTemplatesCache anywhere in your user data directory.

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