Click here to Skip to main content
15,907,395 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am not able to set the registry for creating the new project type in Visual Studio.

What I have tried:

I am following the below link:
New Project Generation: Under the Hood, Part One - Visual Studio (Windows) | Microsoft Learn[^]

In this, while doing the project type root nodes, I am facing a problem in setting the system registry key. I'm not able to find the path HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\14.0\NewProjectTemplates\TemplateDirs.
Updated 23-Aug-23 1:42am
Dave Kreskowiak 22-Aug-23 12:33pm    
That article you're following is for an old version of Visual Studio 2015. It will not work for newer versions.

You do not create templates by manipulating the registry.

1 solution

That is not the way to create new templates; you need to stay well away from the registry unless you completely understand it. If you want to create a new project template you should go to Templates for projects and files - Visual Studio (Windows) | Microsoft Learn[^]
Share this answer
Meghana Mekala 23-Aug-23 4:42am    
I want to create new project type, not project template
Richard MacCutchan 23-Aug-23 4:43am    
Well you need to explain exactly what you mean by "new project trype".

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900