I've started to use GAT\GAX just recently in order to develop a guidance package to automate the solution layout just the way I like it.
I want the following structure for my solution:
- Folder with the name equal to the SolutionName
o "Trunk"
-
SolutionName.sln
-
SolutionFolders
I've already managed to put the .sln inside the "Trunk" folder using a custom action. I want that the creation of this folder to be transparent to the one using the guidance package. It does something like this:
Code Snippet
newDir = Path.Combine(originalSolutionDir, _trunkFolderName);
newFilename = Path.Combine(newDir, Path.GetFileName(originalSolutionPath));
Directory.CreateDirectory(newDir);
vs.Solution.SaveAs(newFilename);
Where the newFilename already has the folder "Trunk" in the path. But when in the template I do this:
Code Snippet
<TemplateContent>
<ProjectCollection>
<SolutionFolder Name="Source" />
<SolutionFolder Name="Tests" />
</ProjectCollection>
</TemplateContent>
All the solution folders are created under the original folder (the one with the name equal to the solution name) and not under the "Trunk" folder.
Does anyone know how to fix this?