简体   繁体   中英

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

您是否已将nant设置为环境变量?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM