((EnvDTE80.Solution2)dte.Solution).GetProjectItemTemplate("Test Settings", "Test");
I need to add a new TestSettings object programmatically in a C # project in Visual Studio. To do this, I need to get the path to the template file. A call to GetProjectItemTemplate should do this, but is not suitable for this type of template. Other types of templates, such as the CSharp class, work fine. Even the custom types that I registered work fine. But not the type of TestSettings.
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 type of template is not working?
source
share