Performing a parallel task on NAnt

I use NAnt to build 5 different installer packages for the same software in different configurations. These tasks can be parallelized because they are independent of each other. Installshield, which creates such a configuration, seems ineffective with respect to the use of multi-core processors (use is limited to 25% by the processor on a 4-core computer). I was looking for an easy way to minimize tasks and found this one , which is pretty much what I need. However, the source code for this project is not available, and it refers to some types that are not available in the latest version of NAnt 0.91, which we require to support .NET 4.0.

Any ideas on how to solve this problem, except writing my own extension for NAnt?

+4
source share
4 answers

I really found the source code by writing to the author. Now it is part of the CIFactory project, and the source code can be obtained through the home page. With some changes, I was able to run it in the latest version of NAnt. I will publish it when I work out a few kinks, mainly regarding where the stream is going.

+4
source

If you look back at the page, further in the comments are Source Code Links

Source is available. 'course reflector will parse with the right plugin ...

+3
source

It is not particularly difficult, but I do not know of any other ready-made project or tasks for NAnt that will do this. So your only option is to write your own implementation of the parallel task. However, since the guy provides compiled assemblies, you can always give them a look at Reflector and get a general idea if you understand what I mean :)

0
source

Take a look at https://github.com/NAntCrossCompile/NAnt.Parallel. There is a plugin in development that allows you to perform tasks in parallel based on sets of files, folders, strings ...

0
source

Source: https://habr.com/ru/post/1343165/


All Articles