Bug 27536 - MSBuild task set GlobalProperties wrong
Summary: MSBuild task set GlobalProperties wrong
Status: NEW
Alias: None
Product: Tools
Classification: Mono
Component: xbuild ()
Version: unspecified
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-03-01 04:57 UTC by Vlad Zaitsev
Modified: 2015-03-01 04:59 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Project files to reproduce (417 bytes, application/gzip)
2015-03-01 04:59 UTC, Vlad Zaitsev
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 27536 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
NEW

Description Vlad Zaitsev 2015-03-01 04:57:25 UTC
Second building of a project by MSBuild task (in one executing of xbuild) use GlobalProperties from global context (setted from command line) instead of using it form parent project.
See attachment.
command: xbuild Meta.proj "/p:P1=C;P2=C"
expected output:
Project "/ld/program/mono/Test/bug/targetOutput/Meta.proj" (default target(s)):
        Target S1:
                Project "/ld/program/mono/Test/bug/targetOutput/Test.csproj" (default target(s)):
                        Target Test:
                                P1 = M1
                                P2 = M1
                Done building project "/ld/program/mono/Test/bug/targetOutput/Test.csproj".
                Project "/ld/program/mono/Test/bug/targetOutput/Test2.csproj" (default target(s)):
                        Target Test2:
                                P1 = M
                                P2 = M
                                Project "/ld/program/mono/Test/bug/targetOutput/Test.csproj" (default target(s)):
                                        Target Test:
                                                P1 = Test2
                                                P2 = M
                                Done building project "/ld/program/mono/Test/bug/targetOutput/Test.csproj".
                Done building project "/ld/program/mono/Test/bug/targetOutput/Test2.csproj".
Done building project "/ld/program/mono/Test/bug/targetOutput/Meta.proj".
actual output
Project "/ld/program/mono/Test/bug/targetOutput/Meta.proj" (default target(s)):
        Target S1:
                Project "/ld/program/mono/Test/bug/targetOutput/Test.csproj" (default target(s)):
                        Target Test:
                                P1 = M1
                                P2 = M1
                Done building project "/ld/program/mono/Test/bug/targetOutput/Test.csproj".
                Project "/ld/program/mono/Test/bug/targetOutput/Test2.csproj" (default target(s)):
                        Target Test2:
                                P1 = M
                                P2 = M
                                Project "/ld/program/mono/Test/bug/targetOutput/Test.csproj" (default target(s)):
                                        Target Test:
                                                P1 = Test2
                                                P2 = C
                                Done building project "/ld/program/mono/Test/bug/targetOutput/Test.csproj".
                Done building project "/ld/program/mono/Test/bug/targetOutput/Test2.csproj".
Done building project "/ld/program/mono/Test/bug/targetOutput/Meta.proj".
Comment 1 Vlad Zaitsev 2015-03-01 04:59:01 UTC
Created attachment 10101 [details]
Project files to reproduce