Re: NAnt.Core.Project
"Obendorf, Keston" <[email protected]> Mon, 27 Jun 2011 11:01:08 -0700
| Newsgroups | gmane.comp.windows.dotnet.nant.user |
|---|---|
| Message-ID | <43F901BD926A4E43B106BF17856F07550190F5D6EA@orsmsx508.amr.corp.intel.com> |
The call is being made from a custom NAnt task I coded in C#. From: Wilson, Brian [mailto:[email protected]] Sent: Monday, June 27, 2011 5:43 AM To: Obendorf, Keston; [email protected] Subject: RE: NAnt.Core.Project Are you making this call from a C# program? Or, do you have a task in your build file that is coded in C#? Brian Wilson Department of Human Resources Email: [email protected]<mailto:[email protected]> From: Obendorf, Keston [mailto:[email protected]] Sent: Friday, June 24, 2011 5:26 PM To: [email protected] Subject: [NAnt-users] NAnt.Core.Project I'm trying to make a custom Nant task that may end up calling another Nant build file. I create the project like so: NAnt.Core.Project buildProject = new NAnt.Core.Project(BuildfilePath, NAnt.Core.Level.Info, 1); buildProject.Execute(BuildfileTarget); This will not execute the target, giving the error log message that the target was not found. foreach (string s in buildProject.BuildTargets) { this.Project.Log(NAnt.Core.Level.Info, "BuildTarget: " + s); } foreach (NAnt.Core.Target t in buildProject.Targets) { this.Project.Log(NAnt.Core.Level.Info, "Target: " + t.Name); } Yields no results for either property. I don't see a bug in for this, nor any documentation so I don't know if this is expected behavior. Does anyone have experience using the Project object? _Keston ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ NAnt-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nant-users