任何出色的PowerShell MSBuild任务? [英] Any good PowerShell MSBuild tasks?

查看:69
本文介绍了任何出色的PowerShell MSBuild任务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都知道可以执行PowerShell脚本并将不同的参数传递给它的任何出色的MSBuild任务吗?

Anyone know of any good MSBuild tasks that will execute a PowerShell script and pass it different parameters?

我能够找到

I was able to find B# .NET Blog: Invoking PowerShell scripts from MSBuild, but I'm hoping for something that is a little more polished.

如果我找不到任何东西,我当然会继续使用该博客文章作为入门来完善自己的内容.

If I can't find anything I will of course just go ahead and polish my own using that blog post as a starter.

推荐答案

一个人可以使用 http://powershellmsbuild.codeplex .com/(3.5版). 如果有一个可以通过NuGet软件包还原来利用的NuGet软件包,那就太好了.

One could use http://powershellmsbuild.codeplex.com/ for 3.5. It'd be nice if there was a NuGet package for it that one could leverage via NuGet package restore.

4.0具有 Windows Powershell任务工厂,您可以通过在代码中获得画廊 已进入 MSBuild扩展包(顶级任务库之一-400项以上的任务,并在《 MSBuild内部》中推荐)具有(请从本示例版本的下载部分下载帮助文件,以了解一下).

4.0 has a Windows Powershell Task Factory which you can get in the code gallery has been rolled into MSBuild Extension Pack (one of the top task libraries - 400+ Tasks & recommended in Inside MSBuild) has PowerShellTaskFactory (download the help file from the download section of this example release to have a peek).

这篇关于任何出色的PowerShell MSBuild任务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆