happy
happy

Reputation: 43

run nant build file in command prompt using c#

I have a build file with nant now all I need to do is execute it with command prompt using c# I tried the below but I am not able to build it ..

System.Diagnostics.Process.Start("exe -buildfile:d:\buildfile.build);

and when I am running through cmd prompt directly it is working

Upvotes: 1

Views: 6105

Answers (1)

Chris McKelt
Chris McKelt

Reputation: 1388

Have you setup nant as an environment variable?

System.Diagnostics.Process.Start("nant.exe -buildfile:d:\buildfile.build);

Upvotes: 2

Related Questions