Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 04, 2012 03:59 AM by shree_ars
Jul 24, 2012 07:55 AM|LINK
i have created a visual studio template.. where its get created some projects.
Now i need to include the solution folder to it and add some plain files(i.e txt, config.. or some independent files) to this folder.
right now i can create solution folder from template. but i cant add any items to it... how to do it.
from templateContent i added solitionfolder tag and inside i added projectItem thats vain. i also mapped projectTemplateLink to template whose Type is Item...thats to no use..
any solution for this...
Jul 24, 2012 09:38 AM|LINK
Actually adding to the template may create Path issues for other developers so you may create Nuget Package if it makes sense
Jul 24, 2012 11:08 AM|LINK
no no... actually the template is custom template which i am createing... so its a unique one for project.
how to make it up?
Dec 04, 2012 03:59 AM|LINK
I got the solution. Thanks for all replies..
Actually the template doesnt have the feature to add solution folder and its item.
It can able to add only projects and items to it. even we can add solution folder to project.
But we cant able to add solutionfolder to solution through template.
The alternate way is by using the EnvDTE80.Solution2
by using this object we can able to add solutionfolder to solution and also add items to it.
But one thing is when we add items to solutionFodler by code, the item get opened automatically. This we need t suppress.trying out.
so goahead with EnvDTE80.solution2
Thanks to all