简体   繁体   English

使用C#在命令提示符下运行Nant构建文件

[英]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 .. 我有一个带有nant的构建文件,现在我所要做的就是使用c#在命令提示符下执行该文件,我尝试了以下操作,但是我无法构建它..

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

and when I am running through cmd prompt directly it is working 当我直接通过cmd提示符运行时

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

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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