Is it possible to add a solution folders with the project template? If it's not built in functionality, is it possible to create a custom task for this?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
This is bit tricky. You cannot do this with simple project template. Project templates could operate only on single project level. To implement more advanced logic, you need to implement WizardExtension and register it within
.vstemplate
file of your template.You can find more about wizard extensions on MSDN.
It is possible, for how to you can check this msdn website. Or for the total overview
I'm using the following snippets in my Project Template Wizard (see Mike Chaliy's answer):
where
_solution = (Solution2) _dte.Solution;
You can do it using template wizards. I guess that you already know how to implement it.
So, inside RunFinished method, write these lines:
For Solution2 class you have to reference EnvDTE80.dll. _dte must be set from RunStarted method.