在NAnt上并行执行任务 [英] Parallel task execution on NAnt

查看:76
本文介绍了在NAnt上并行执行任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用NAnt为同一软件以不同的配置构建5个不同的安装程序包.这些任务可以彼此并行化,因此可以并行化.正在构建这些配置的Installshield在多核CPU使用方面(在4核计算机上的使用上限为25%CPU)方面似乎效率低下.我一直在寻找一种使任务并行化的简单方法,却只发现了,我需要的.但是,该项目的源代码不可用,它所引用的某些类型在最新版本的NAnt 0.91中不可用,而我们需要.NET 4.0支持.

I am using NAnt to build 5 different installer packages for the same software, in different configurations. These tasks can be parallelized as they are not dependent on each other. Installshield which is building these configuration seems inefficient with regards to multi core CPU usage (the usage capped at 25% CPU on a 4 core machine). I have been looking for an easy way to parallize tasks and only found this, which is pretty much what I need. However the source code for this project is not available and it's referencing some types which are not available in the latest version of NAnt 0.91 which we require for .NET 4.0 support.

除了为NAnt编写自己的扩展程序以外,还有其他解决方法的想法吗?

Any ideas on how to solve this, short of writing my own extension for NAnt?

推荐答案

我实际上是通过写给作者来找到源代码的.现在,它已成为项目收集的CIFactory的一部分,并且可以通过项目主页来访问源代码.经过一些修改,我得以使其在最新的NAnt版本上运行.我将在解决一些问题时将其发布,主要是关于将输出流传输到何处.

I actually found the source code by writing to the author. It's now a part of a project colled CIFactory and the source code can be accessed through the project homepage. With a few modifications I was able to get it running on the latest NAnt version. I will publish it when I work out a few kinks, mostly regarding where the output is streamed to.

这篇关于在NAnt上并行执行任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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