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

What are the correct arguments for Solution.GetProjectTemplate() to get the VS2013 'ASP.NET Web Application' Project Template?

$
0
0

I want to add a web project to my solution using the 'ASP.NET Web Application' project template.  Through trial and error I found the right project template in my VS 2013 folder, under "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\ProjectTemplates\CSharp\Web\1033\WebTemplate45". If I skip the call to GetProjectTemplate() and call AddFromTemplate() passing the full path to the vstemplate file, the project gets created as I'd expect, but I'd like to avoid hard-coding the full path to the template and use GetProjectTemplate to resolve the full path.  I've tried every combination of arguments that make sense but I always get a FileNotFound exception.

What arguments should I be passing to GetProjectTemplate()?  Thanks.


Viewing all articles
Browse latest Browse all 4410

Trending Articles



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