[英]Running powershell script from solution explorer inside Nuget Package Manager Console
I have a few powershell scripts inside my c# project. 我在c#项目中有一些powershell脚本。 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 :
是否可以通过以下方法之一使VS2010在nuget powershell控制台中运行它们:
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
. 简而言之,安装软件包并将这些脚本放在名为
SolutionScripts
的文件夹中。
We followed up on this question at http://nuget.codeplex.com/Thread/View.aspx?ThreadId=239161 . 我们在http://nuget.codeplex.com/Thread/View.aspx?ThreadId=239161上跟进了这个问题。
To summarize, try using an init.ps1 file. 总而言之,请尝试使用init.ps1文件。 Look at the MvcScaffold package for a good example of this.
看看MvcScaffold软件包就是一个很好的例子。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.