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

Solution2.GetProjectTemplate returning the wrong template

$
0
0

I have some automation code that worked fine in previous versions of VS.  Now in VS2012, it retrieves the wrong template when Windows Phone tools are installed.  My original code is below.  I have tried several variations based on the MSDN docs and forum posts to no avail.  The templates that it is retrieving are the Windows Phone\Class Library and Windows\ClassLibrary_WorkerRole_vb_20.zip

DimtemplateAsString=DirectCast(_dte.Solution, EnvDTE80.Solution2).GetProjectTemplate("ClassLibrary.zip","VisualBasic")

        _dte.Solution.AddFromTemplate(template, destpath, name)


Viewing all articles
Browse latest Browse all 4410

Trending Articles



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