I wanted to create an empty database project from Visual Studio 2017 programmatically. I tried creating a console application programmatically and was successful. Here is the code with which I tried creating a Console Application.
Solution2 soln = (Solution2)dte.Solution;
string dbTemplatePath;
string dbPrjPath = "C:\\source";
dbTemplatePath = soln.GetProjectItemTemplate("ConsoleApplication.zip", "CSharp");
soln.AddFromTemplate(dbTemplatePath, dbPrjPath, "New db project", false);
When I replace ConsoleApplication.zip with dbApplication.zip, I could not come up with a database project.
Also, I noticed the template for ConsoleApplication found in the location Microsoft Visual Studio 14.0\Common7\IDE\ProjectTemplates\CSharp\Windows Root\Windows\1033\ConsoleApplication whereas there is no such template for database project.
Any help would be appreciated. Thanks in advance