This solution solve my problem, thanks, but also solve another problem what
I had.

I wrote task class which is descendent of ExternalProgramBase. When I
override method StartProcess this method was not called but override method
ExecuteTask works correctly. When I reverse the order of the
supportedRuntime elements method StartProcess works also correctly.

I think that this is realy strange behavior without any error message. I am
writing this mail only for your information. (Maybe you already know about
it.)

Pavel

----- Original Message ----- 
From: "David Reed" <[EMAIL PROTECTED]>
To: "Pavel Vašek" <[EMAIL PROTECTED]>
Sent: Thursday, September 04, 2003 4:50 PM
Subject: RE: [nant-dev] User task - process


> You have the 1.1 Framework installed, I guess.  Reverse the order of the
supportedRuntime elements in <startup /> in the bin\nant.exe.config file.
>
>
>
> -----Original Message-----
> From: Pavel Vašek [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 04, 2003 8:48 AM
> To: [EMAIL PROTECTED]
> Subject: [nant-dev] User task - process
>
> Hi all,
>
> I have a following problem. When I try to start
> process from ExecuteTask method I received
> error: "Invalid PInvoke metadata format.".
>
> I use code like this:
>
> Process process = new Process();
> process.StartInfo.FileName = "ping.exe";
> process.StartInfo.WorkingDirectory = ".";
> process.StartInfo.RedirectStandardOutput = true;
> process.StartInfo.RedirectStandardError = true;
> process.StartInfo.UseShellExecute = false;
> process.Start();
> process.WaitForExit();
>
> In console application this code run without problems but not in
ExecuteTask
> method.
>
> Thanks for answers.
>
> Pavel
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> nant-developers mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/nant-developers



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to