简体   繁体   中英

Running powershell script from solution explorer inside Nuget Package Manager Console

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

Since the previous answer was posted this very simple package came about which does exactly what is needed:

In short, install the package and place those scripts in a folder called SolutionScripts .

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM