468,310 Members | 1,368 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,310 developers. It's quick & easy.

Run NAnt from my own application

I have figured out how to get this running by using Ant.Console as a
starting point for calling NAnt. I had to include NAnt.Core,
NAnt.DotNet & NDoc.Core in my project and it worked correctly.

But, since I already have NAnt installed on my system, I was hoping
that I would not need to include references to NAnt.Core, NAnt.DotNet
& NDoc.Core

I removed the references and set my path environment varible to point
at the NAnt\bin folder but there is a failure at this line:

Assembly nantCore =
Unhandled Exception: System.IO.FileNotFoundException: File or assembly
name NAnt.Core, or one of its dependencies, was not found.
File name: "NAnt.Core"
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String
codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean
throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark)
at System.Reflection.Assembly.InternalLoad(AssemblyNa me
assemblyRef, Boolean stringized, Evidence assemblySecurity,
StackCrawlMark& stackMark)
at System.Reflection.Assembly.InternalLoad(String assemblyString,
Evidence assemblySecurity, StackCrawlMark& stackMark)
at System.AppDomain.Load(String assemblyString)
at Test.External.Ant.HelperArguments.CallConsoleRunne r() in
c:\_applicationsvs\mftest\external\ant\antcontroll er.cs:line 215
at System.AppDomain.DoCallBack(CrossAppDomainDelegate
at Test.External.Ant.AntController.execute(String[] args) in
c:\_applicationsvs\mftest\external\ant\antcontroll er.cs:line 113
at Test.Form1.btnRunAnt_Click(Object sender, EventArgs e) in
c:\_applicationsvs\mftest\form1.cs:line 547
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventAr gs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage (Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(M essage& m)
at System.Windows.Forms.NativeWindow.DebuggableCallba ck(IntPtr
hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchM essageW(MSG&
at System.Windows.Forms.ComponentManager.System.Windo ws.Forms.UnsafeNativeMethods+IMsoComponentManager. FPushMessageLoop(Int32
dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.ThreadContext.RunMessageLoopI nner(Int32
reason, ApplicationContext context)
at System.Windows.Forms.ThreadContext.RunMessageLoop( Int32 reason,
ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at Test.Form1.Main() in c:\_applicationsvs\mftest\form1.cs:line 425

Cheers Dave
Nov 15 '05 #1
0 1882

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by hoochiegooch | last post: by
reply views Thread by muesliflakes | last post: by
2 posts views Thread by Ireneus Broncel | last post: by
2 posts views Thread by Ashish | last post: by
12 posts views Thread by michael sorens | last post: by
reply views Thread by james.mcdonagh | last post: by
1 post views Thread by Sam | last post: by
reply views Thread by Teichintx | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.