mardi 25 mars 2014

Custom "One ASP.NET" Project Templates within Visual Studio 2013


Vote count:

0




How does one integrate a "One ASP.NET" project template within Visual Studio 2013? For example:


New ASP.NET Project with Fake Custom Template




The "to be distributed" project began as a new ASP.NET Web Application project, using the Empty template and the MVC and Web API "folders and references" checked. From there I added my love and affection and used Export Template. The zip lands in My Documents > Visual Studio 2013 > My Exported Templates. If you have Visual Studio install the template for you, a duplicate zip is placed within My Documents > Visual Studio 2013 > Templates > ProjectTemplates. Here's where the problem begins...




In Visual Studio the template is found within the Visual C# tree branch, not a custom template within the ASP.NET Web Application template. Bummer. Even more odd, the template installs only to C# and not to its Web sub-folder.


MSDN documentation online mentioned a <ProjectSubType> within the .vstemplate file, which was empty when I investigated, but even explicitly adding Web did not change the UI location. This nothing to do with my goal really, but it seems to suggest that VS2013 does not honor some of the XML within .vstemplate?



asked 37 secs ago






Aucun commentaire:

Enregistrer un commentaire