Bug 58881 - "a.b.c" project fails to build w\ msbuild
Summary: "a.b.c" project fails to build w\ msbuild
Alias: None
Product: Xamarin.Mac
Classification: Desktop
Component: MSBuild ()
Version: Master
Hardware: PC Mac OS
: Normal normal
Target Milestone: 15.7
Assignee: Ankit Jain
Depends on:
Reported: 2017-08-18 15:03 UTC by Chris Hamons
Modified: 2018-01-18 23:17 UTC (History)
4 users (show)

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

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 58881 on Developer Community or GitHub 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: Developer Community HTML or GitHub Markdown
  • 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:

Description Chris Hamons 2017-08-18 15:03:58 UTC
- Create a new XM project with the name of "A.B.C"
- Build with xbuild a.b.c.sln - Works
- Build again with msbuild a.b.c.sln - Fails with 

"/Users/donblas/Projects/a.b.c/a.b.c.sln" (default target) (1) ->
"/Users/donblas/Projects/a.b.c/a.b.c.csproj" (default target) (2) ->
(_CopyContentToBundle target) -> 
  /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Mac/Xamarin.Mac.Common.targets(267,3): error : The number of DestinationFiles must match the number of SourceFiles. [/Users/donblas/Projects/a.b.c/a.b.c.csproj]
Comment 1 Ankit Jain 2017-08-19 20:12:18 UTC
Can you share more details? mono and msbuild version? XM version? And attach the diag log.

It works for me with:
Xamarin.Mac Version:
Comment 3 Ankit Jain 2017-08-28 04:49:45 UTC
I can reproduce this now.
Comment 4 Ankit Jain 2018-01-18 23:17:38 UTC
This is a msbuild bug. The issue is that the app name contains a single quote (`'`), which breaks item transforms.

Upstream issue filed: https://github.com/Microsoft/msbuild/issues/2879