Click here to Skip to main content
16,008,010 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, I am trying to implement the utility to build and deploy the .net application using NAnt.exe

If anyone have experience on it please help me to implement this concept.

In code behind i am trying the below manner to execute the build and deploy command. Jut passing the command as a arguments through
system.Diagnostics.Process runprog = new System.Diagnostics.Process();

System.Diagnostics.Process runprog = new System.Diagnostics.Process();
runprog.StartInfo.FileName ="NAnt.exe"
runprog.StartInfo.WorkingDirectory = "C:\source\"
runprog.StartInfo.Arguments = "debug -D:sourcedir=C:\Working\src\dvp -l:C:\Working\nmsbuild.log -D:svn=no"


Thanks,
RK
Posted
Comments
Fredrik Bornander 14-Oct-10 6:02am    
It looks like you're running the NAnt script from within a C# program, is there a reason for this?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900