Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Adding a solution folder via DTE in NuGet
function Add-SolutionFolder {
$solution2 = Get-Interface $dte.Solution ([EnvDTE80.Solution2])
function Get-SolutionFolder {
param (
$solution2.Projects | ?{ $_.Kind -eq [EnvDTE80.ProjectKinds]::vsProjectKindSolutionFolder -and $_.Name -eq $Name }
# Adding a solution folder and a file
$sf = Add-SolutionFolder folder
# Pass the absolute path to the file
# Removing
$sf = Get-SolutionFolder folder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment