Running powershell script from solution explorer inside Nuget Package Manager Console

Question:

I have a few powershell scripts inside my c# project. I added them to a solution folder. Would it be possible to make VS2010 run them inside the nuget powershell console by one of these methods :

  • double clicking on the file
  • right click / open with
  • custom action on the context menu

Answer:

We followed up on this question at http://nuget.codeplex.com/Thread/View.aspx?ThreadId=239161.

To summarize, try using an init.ps1 file. Look at the MvcScaffold package for a good example of this.

Source:

Running powershell script from solution explorer inside Nuget Package Manager Console by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply