Bug 44726 - Satelite assemblies from libraries not copied for build with xbuild
Summary: Satelite assemblies from libraries not copied for build with xbuild
Status: RESOLVED NOT_ON_ROADMAP
Alias: None
Product: Tools
Classification: Mono
Component: xbuild ()
Version: 4.6.0 (C8)
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL: https://github.com/WebDucer/xbuildRes...
Depends on:
Blocks:
 
Reported: 2016-09-26 07:33 UTC by Eugen Richter
Modified: 2018-03-15 10:39 UTC (History)
4 users (show)

Tags:
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 on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NOT_ON_ROADMAP

Description Eugen Richter 2016-09-26 07:33:06 UTC
I have created a test repository on GitHub for the issue:

https://github.com/WebDucer/xbuildRessourceIssue

I have an library (for Xamarin.Forms) with ressource files for translation. This are compiled as satellite assemblies and are included in nuget package.

If I use this library in my mobile Xamarin projects, the sattelite assemblies are lost, if I build on macOS (they are not copied to the build output folder (it is not matter if I compile direct with xbuild in terminal or with Xamarin Studio).

If I compile the same solution with Visual Studio 2015 on Windows all works perfect. Satellite asseblies from library are copied to the build output directory and are included in APK and IPA.

Current Workaroud:
I copy the satellite assemblies in my build scripts (FAKE), before compilation.
Comment 1 Eugen Richter 2016-11-03 14:03:23 UTC
Is there anyone who look for tickets? Status not changed over a month!
Comment 2 petuhov_k 2017-03-29 05:59:36 UTC
I ran into the same problem with asp.net mvc application. My project refers to some libraries obtained using NuGet. And those libraries have satellite resource dlls. After 'xbuild .../t:Rebuild' there is only one satellite resource dll - for main app, but there are no satellites for referenced assemblies. It's breaks my CI process due to referenced assemblies location changed after each version update.
Comment 3 petuhov_k 2017-03-29 06:05:07 UTC
It's looks like bug in CopyFilesMarkedCopyLocal target. Similar target from MS does this work, but xamarin's one skips satellites.
Comment 4 Andreas 2017-10-13 13:30:10 UTC
No progress here yet? This is a true pain...
Comment 5 Marek Safar 2018-03-15 10:39:56 UTC
We deprecated xbuild and recommend using msbuild instead. Switching to msbuild will also most likely resolve the issue you reported.