Running powershell script from solution explorer inside Nuget Package Manager console

I have several powershell scripts inside my C # project. I added them to the solutions folder. Is it possible to get VS2010 to run them inside the nuget command line console in one of the following ways:

  • double click on a file
  • right click / open with
  • custom action in the context menu
+6
c # powershell nuget
source share
2 answers

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

To summarize, try using the init.ps1 file. Take a look at the MvcScaffold package for a good example.

+1
source share

Since the previous answer was published, a very simple package has appeared that does exactly what is needed:

In short, install the package and put these scripts in a folder called SolutionScripts .

+3
source share

All Articles