Guest User

Untitled

a guest
Jul 17th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. # Get the open solution.
  2. $solution = Get-Interface $dte.Solution ([EnvDTE80.Solution2])
  3.  
  4. # Create the parent solution folder.
  5. $parentProject = $solution.AddSolutionFolder("Parent")
  6.  
  7. # Create a child solution folder.
  8. $parentSolutionFolder = Get-Interface $parentProject.Object ([EnvDTE80.SolutionFolder])
  9. $childProject = $parentSolutionFolder.AddSolutionFolder("Child")
  10.  
  11. # Add a file to the child solution folder.
  12. $childSolutionFolder = Get-Interface $childProject.Object ([EnvDTE80.SolutionFolder])
  13. $fileName = "D:projectsMyProjectMyProject.csproj"
  14. $projectFile = $childSolutionFolder.AddFromFile($fileName)
  15.  
  16. param($installPath, $toolsPath, $package, $project)
Add Comment
Please, Sign In to add comment