title: Unload all projects in solution
body: <p>Based off of <a href="https://stackoverflow.com/questions/12292577/how-can-i-reload-a-visual-studio-project-thru-a-nuget-powershell-script">How can I reload a visual studio project thru a nuget powershell script</a></p>
  
  <p>I'm thinking powershell is the way to go about this but the package manager console seems to want to just return text if I start a line with <code>{</code></p>
  
  <p>so here's the script I'm trying to get it to run:</p>
  
  <pre><code>{ $dte.Windows.Item("{3AE79031-E1BC-11D0-8F78-00A0C9110057}").Activate() 
  $dte.Solution | ForEach-Object { $dte.ActiveWindow.Object.GetItem($_.name).Select(1)
  $dte.ExecuteCommand("Project.UnloadProject")}
  }
  </code></pre>
  
  <p>but when wrapped into a <code>{</code> code <code>}</code> it just returns the text as a command block</p>
  
  <p>How can I use powershell to unload all projects across the entire solution and solution folders? I'm not very good with powershell, but surely there is a way to do this.</p>