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.