Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Using msbuild passing a project variable to msbuild and it appears not to be working.

Rob McElroy January 22, 2013

I'm using Bamboo to execute mbsbuild tasks. On one task I need to pass a bamboo project variable to an msbuild propertygroup item.

I'm passing the following arguments in the Options parameter for my build task.

/p:Issues="${bamboo.DBChanges}" /target:UpdateDatabase

The target is executed properly, but the Issues item is never set.

Here is where my Issues property group is defined in my script.

<PropertyGroup>
      <Issues></Issues>
    </PropertyGroup>

1 answer

1 accepted

0 votes
Answer accepted
Rob McElroy February 26, 2013

The problem was the <propertygroup> was defined inside of a target and should have been defined globally, or outside of all targets.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events