Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

VSPackage: Add TemplateItem to Project

$
0
0

I would like to be able to add an unit test class to a unit test project by using a template from within a vspackage
I am using VS 2012 Premium

_solution.GetProjectItemTemplate("Class", "CSharp")

Gives me the path to the class template but I can't pickup a path for eg BasicUnitTest, eg

_solution.GetProjectItemTemplate("BasicUnitTest", "CSharp")

The templates I need are stored here:

c:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\ItemTemplatesCache\CSharp\Test\1033\

I have tried different solutions but to no avail
I can easily add the class using the gui

Thanks /Peter



Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>