How many places are project templates stored?

Michael Baker 1 Reputation point
2024-03-12T21:09:40.49+00:00

I updated a template file today and I see the old one remains.

I referred to the article at https://learn.microsoft.com/en-us/visualstudio/ide/how-to-locate-and-organize-project-and-item-templates?view=vs-2022

I found one in C:\Users[USER_NAME]\Documents\Visual Studio 2022\My Exported Templates and moved the file out of there to my desktop.

I found another one in C:\Users[USER_NAME]\Documents\Visual Studio 2022\Templates\ProjectTemplates and moved that one out as well.

Both of these files are dated today. I don't see a "Visual C#" file in either of these locations. I see a C# folder, but it's empty. I tried searching in C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7. Not there.

Is there a way I can get VS to tell me where that template is?

Developer technologies | Visual Studio | Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. RLWA32 49,551 Reputation points
    2024-03-12T22:22:04.09+00:00

    VS2022 caches a user's custom templates. Refer to the comments made to the answer posted by @Karen Payne MVP in this post -- https://learn.microsoft.com/en-us/answers/questions/714454/location-of-visual-studio-2022-project-template-ca

    0 comments No comments

  2. Michael Baker 1 Reputation point
    2024-03-13T16:54:58.6466667+00:00

    I found the ones that were sticking in the list. They were installed using VSIX that I had created for the rest of the team. They're in %AppLocalData%\Microsoft\VisualStudio\VERSION\Extensions\AUTHOR where VERSION could be 17.0_ followed by a hexidecimal folder name, and AUTHOR could be something easy like the name of the author or something cryptic like 12cyuzu4.zxr.

    It's best to remove those using the UI. Use the menu "Extensions / Manage Extensions". Find the items in the list and 'uninstall'. The VSIX installer will launch and remove them when you close all the VS windows.

    Mike


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.