1

I am trying to unload a project using $dte powershell command. I am running this command from Package Manager Console in Visual Studio. I know I can unload the project using

$dte.ExecuteCommand("Project.UnloadProject")

But before this, I would have to select the project and I am unable to do the same. Any ideas?

James Oravec
  • 19,579
  • 27
  • 94
  • 160
Ram V
  • 724
  • 1
  • 8
  • 18
  • Basically I am looking for the command to select a specific project in Visual Studio Solution Explorer. – Ram V Nov 14 '13 at 14:13

1 Answers1

1

You should be able to do something resembling the following:

$dte.Solution.Projects | Where { $_.Name -imatch "DesiredProjectName" }

But I only referenced the docs on MSDN

Eris
  • 7,378
  • 1
  • 30
  • 45