Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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 16488 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
In special cases on GitHub you might also want the comments:
GitHub Markdown with public comments
When using CallTarget, any Items or Properties created within the called target should be destroyed when the flow control returns to the caller. This is not the case with xbuild, but is with msbuild.
In this simple example xbuild will generate the output "1;2;3;4;5;1;2;3;4;5" and msbuild will generate "1;2;3;4;5" as expected. I've attached the build script, and logs for xbuild (18.104.22.168) and msbuild (4.0):
<Message Text="Items in Collection before CallTarget: @(Collection) "/>
<Output TaskParameter="TargetOutputs" ItemName="Collection" />
<Message Text="Items in Collection after CallTarget: @(Collection) "/>
<Collection Include="1;2;3;4;5" />
If you remove the 'Outputs' then xbuild outputs "1;2;3;4;5" and msbuild outputs nothing.
Created attachment 5558 [details]
sample script of the problem, logs from xbuild and msbuild.