I added the '$lastexitcode = 0' line because without it, several other
passing specs started failing. I assumed that the $lastexitcode var was set
by something else earlier in the call stack, so I wanted to ensure that it
was 'clean' before the '& $cmd' statement.


On Mon, Dec 23, 2013 at 11:38 AM, vorou <notifications@github.com> wrote:

> In psake.psm1:
>
> > @@ -142,8 +142,12 @@ function Exec
> >      $tryCount = 1
> >
> >      do {
> > -        try {
> > +        try {
> > +            $lastexitcode = 0
>
> I'm debugging the spec, it passes if you comment this line. Otherwise, the
> var is still 0 even after failed msbuild call in next line.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/psake/psake/pull/90/files#r8531991>
> .
>