I've updated a default template in Visual Studio 2008 with the following path:
C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\ItemTemplates\Web\CSharp\1033
But when I've tried adding a new file with this type of template, I'm still getting the old version which I have found to be cached in this folder path:
C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\ItemTemplatesCache\Web\CSharp\1033
What I would like to know is when does a new project template get pulled from it's zip file and put into the Item Tempate Cache in visual studio?
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.
1. Close Visual Studio (ensure devenv.exe is not present in the Task Manager) 2. Delete the %USERPROFILE%\AppData\Local\Microsoft\VisualStudio\14.0\ComponentModelCache directory 3. Restart Visual Studio.
By default, user templates are located in: %USERPROFILE%\Documents\Visual Studio 2019\Templates\ProjectTemplates. %USERPROFILE%\Documents\Visual Studio 2019\Templates\ItemTemplates.
Open up the Visual Studio Command Prompt and type in:
devenv /installvstemplates
Source: How to Edit Visual Studio Templates
I had the same issue. What was here did not work for me. What I did however is to go to a specific folder and edit the files directly. Just go there :
%AppData%\Microsoft\VisualStudio\{some_version}\ItemTemplatesCache\
It contains folders named after the zip files from your archives in the template folder. I needed admin priviledge for edits.
Enjoy.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With