Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hi,

I am trying to build a utility to build and deploy the .net applications using NAnt.

Below is the way I have tried. Could anyone help me to complete this?

MSIL
System.Diagnostics.Process runprog = new System.Diagnostics.Process();
            runprog.StartInfo.FileName = @"C:\Working\nmsbuildproj\nmsbuild\nant-0.91-alpha2\bin\NAnt.exe"; //"NAnt.exe";
            runprog.StartInfo.WorkingDirectory = @"C:\Working\nmstools\nmsbuild"; //@"C:\znms\nmstools\nmsbuild";
            runprog.StartInfo.Arguments = "  " + "debug -D:sourcedir= -l:\\nmstools\\nmsbuild\\log\\nmsbuild.log -D:svn=no";
            runprog.Start();
            runprog.WaitForExit();



Thanks,
RK
Posted
Updated 13-Oct-10 3:59am
v2
Comments
LittleYellowBird 13-Oct-10 10:00am    
Hi, I have corrected some spelling and grammar for you but you really need to explain why it is not working, do you get errors? What are they etc? :)

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