MSBuild Action

G'day,

I've got a stage that builds projects via the MSbuild Action with the following configurations

NET35\x86

NET35\x64

NET35\AnyCPU

NET40\x86

NET40\x64

NET40\AnyCPU

In the same Continau Stage, if I run Net35 configurations first, the NET40 are incorrectly setup using NET35 settings (Framework only).

In the same Continau Stage, if I run Net40 configuration first, the NET35 are incorrectly setup using NET40 settings (Framework only).

In two separate Continau Stagse, the NET35 and NET40 MS Build actions generate two sets of DLLs correctly use the framework specified in the MSBuild task. I'm assuming that there is some sort of residual configuration getting passed between successive Continua MSBuild Actions. Should this be happening or am I missing some "reset" setting?

Here is the structure of the stages.

Attachment unavailable

Hi Jamie,

As the each action runs in the same working folder, MSBuild sees the obj files from the previous build, thinks they are up to date (even if the target framework versions are different) and does not rebuild. This applies even if the output folders are the different for each action. 

To ensure that MSbuild rebuilds for each action specify the target as "Rebuild" or "Clean,Build"

Alternatively you can you add  "IntermediateOutputPath = $Workspace$\ObjFolder" to the MSBuild Properties, where ObjFolder is different for each action.


Thanks Dave, I figured it would be some caching issue. Thanks for the heads up, adjusting my stages with this knowledge.