Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Get the open solution.
- $solution = Get-Interface $dte.Solution ([EnvDTE80.Solution2])
- # Create the parent solution folder.
- $parentProject = $solution.AddSolutionFolder("Parent")
- # Create a child solution folder.
- $parentSolutionFolder = Get-Interface $parentProject.Object ([EnvDTE80.SolutionFolder])
- $childProject = $parentSolutionFolder.AddSolutionFolder("Child")
- # Add a file to the child solution folder.
- $childSolutionFolder = Get-Interface $childProject.Object ([EnvDTE80.SolutionFolder])
- $fileName = "D:projectsMyProjectMyProject.csproj"
- $projectFile = $childSolutionFolder.AddFromFile($fileName)
- param($installPath, $toolsPath, $package, $project)
Add Comment
Please, Sign In to add comment