((EnvDTE80.Solution2)dte.Solution).GetProjectItemTemplate("Test Settings", "Test");
I need to add a new TestSettings object programmatically to a C# project in Visual Studio. To do this I need to get the path of the template file. The call to GetProjectItemTemplate should do this, but fails for this type of template. Other template types, for example, a CSharp class, work fine. Even custom types that I have registered work fine. But not the TestSettings type.
You can see the template in this zip file:
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplates\Test\1033\TestSettings.zip
Any idea why this template type doesn't work?
In VS 2017 it is there under the solution. Right click on Solution|Add Item...|Test Settings