How to include external "lib" directory in multi-project .vstemplate?
I've written a multi-project .vstemplate file, which works alright, except that the projects have some external dependencies (.dll's) that I want to include with the template, as a peer directory to all the project directories, such that the generated solution looks like:
slndir
lib # dependencies
proj1
proj2
I have开发者_开发技巧 everything except lib. Is there any way to generate this directory and deploy files into it?
I think there is no built-in way to create/add a folder directly under the solution.
However, vstemplate engine is extensible; If you implement the IWizard interface you'll be abble to add any custom logic you want.
Check out Craig Skibo's answer on this MSDN forum question for the details on using the DTE automation API from your IWizard.RunFinished method to add a solution item.
精彩评论