Brett Rigby
Brett Rigby

Reputation: 6226

Calling NAnt from a .Net Application

I am working on a prototype project and need to put a new layer of abstraction over my existing NAnt scripts, for which I'd like to use .Net, possibly even WPF.

What I have at present is a NAnt script which I call from a Command window (a DOS box, for the old-skoolers).

As I said, I'd like to wrap this inside a WPF application that I can customise and make look a like nicer, and prevent the need for the user to access my scripts via the Command window.

But it's how I call the NAant scripts within a .Net application - any ideas?

Upvotes: 0

Views: 106

Answers (1)

Kent Boogaart
Kent Boogaart

Reputation: 178770

Use the System.Diagnostics.Process class.

Upvotes: 3

Related Questions