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 :
Once it is saved as a PS1, VS Code will identify the file as a PowerShell script. From there, you can execute the PowerShell script by press F5 . You can also click the Run button on the top right of the editor. To run a select, you can press F8 or right click on the selection and click the Run Selection option.
Solution Folder If you open a PS1 file, you will be able to run it by pressing F5 or by clicking the Start button.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With