1

Closed

AsyncExec executes target twice

description

in Task:
 
MSBuild.ExtensionPack.Framework.AsyncExec
 
method Execute(), there is a bug at the very last loop:
 
Process.Start(GetCommandLine(str2)).Start();
 
Start is invoked 2 times.

file attachments

Closed May 22, 2012 at 10:16 PM by mikeFourie

comments

wrote Dec 1, 2011 at 7:45 PM

Resolved with changeset 71973.

mikeFourie wrote Dec 1, 2011 at 7:47 PM

thanks for reporting this.

Mike

jbeaurain wrote Apr 13, 2012 at 9:08 PM

This fix does not appear to be in the April 2012 release for some reason

philo32 wrote May 15, 2012 at 1:50 PM

I can also confirm that this is happening to me with the April 2012 version of the Extension pack (4.0.5.0).

When i view the MSBuild.ExtensionPack.Framework dll through a disassembler such as ILSpy, I can see that the process is executed twice.
         ProcessStartInfo startInfo = AsyncExec.GetCommandLine(fileName);
Process process = Process.Start(startInfo);
process.Start();
Any estimate on a resolve time?

mikeFourie wrote May 22, 2012 at 10:14 PM

** Closed by mikeFourie 01/12/2011 12:45

mikeFourie wrote May 22, 2012 at 10:14 PM

not fixed in 4.0

wrote May 22, 2012 at 10:16 PM

Resolved with changeset 76549: Framework\AsyncExec.cs: Fixing the double execute for 4.0
Resolves #9903 (AsyncExec executes target twice) raised by dandikus on 28 Nov 2011