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...
If you win, you need not have to explain...If you lose, you should not be there to explain!
shree_ars
Participant
1395 Points
776 Posts
Include items to solution folder from vsTemplate
Jul 24, 2012 07:55 AM|LINK
Hi all,
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...
Mudasir.Khan
All-Star
15346 Points
3142 Posts
Re: Include items to solution folder from vsTemplate
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
shree_ars
Participant
1395 Points
776 Posts
Re: Include items to solution folder from vsTemplate
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?
shree_ars
Participant
1395 Points
776 Posts
Re: Include items to solution folder from vsTemplate
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