Bug 11089 - Xamarin.Studio cannot build .NET satellite assemblies
Summary: Xamarin.Studio cannot build .NET satellite assemblies
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Project Model ()
Version: 4.0.1
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Lluis Sanchez
Depends on:
Reported: 2013-03-12 19:05 UTC by David Aramant
Modified: 2013-03-21 10:31 UTC (History)
1 user (show)

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

Sample solution (10.31 KB, application/x-zip-compressed)
2013-03-12 19:05 UTC, David Aramant

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 Developer Community or GitHub 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:

Description David Aramant 2013-03-12 19:05:43 UTC
Created attachment 3586 [details]
Sample solution

I've attached a sample app that uses satellite assemblies for resources.  The console app is supposed to read the resource string and display it.

This app works in VS2012.  On a Mac, it works when built with xbuild on the command line (using Mono 3.0.7).  I can run the application either through the command line or through Xamarin Studio.

However, attempting to build it inside of Xamarin Studio results in the following error:


Building: Resources (Debug)
Performing main compilation...
Generating satellite assembly for 'sv' culture with /Library/Frameworks/Mono.framework/Versions/3.0.7/bin/al
/Library/Frameworks/Mono.framework/Versions/3.0.7/bin/mcs /noconfig "/r:/Library/Frameworks/Mono.framework/Versions/3.0.7/lib/mono/4.0/mscorlib.dll" -nostdlib "/out:/Users/aramant/Desktop/Test/Resources/bin/Debug/Resources.dll" "/r:/Library/Frameworks/Mono.framework/Versions/3.0.7/lib/mono/4.0/System.dll" "/r:/Library/Frameworks/Mono.framework/Versions/3.0.7/lib/mono/4.0/System.Core.dll" "/r:/Library/Frameworks/Mono.framework/Versions/3.0.7/lib/mono/4.0/System.Xml.Linq.dll" "/r:/Library/Frameworks/Mono.framework/Versions/3.0.7/lib/mono/4.0/System.Data.DataSetExtensions.dll" "/r:/Library/Frameworks/Mono.framework/Versions/3.0.7/lib/mono/4.0/Microsoft.CSharp.dll" "/r:/Library/Frameworks/Mono.framework/Versions/3.0.7/lib/mono/4.0/System.Data.dll" "/r:/Library/Frameworks/Mono.framework/Versions/3.0.7/lib/mono/4.0/System.Xml.dll" /nologo /warn:4 /debug:full /optimize- /codepage:utf8 "/define:DEBUG;TRACE"  /t:library "/Users/aramant/Desktop/Test/Resources/Properties/AssemblyInfo.cs" "/Users/aramant/Desktop/Test/Resources/Resource.Designer.cs" "/res:/Users/aramant/Desktop/Test/Resources/Resource.resources,Resources.Resource.resources" 
Compilation failed: 1 error(s), 0 warnings

error CS1566: Error reading resource file `/Users/aramant/Desktop/Test/Resources/Resource.resources'

Build complete -- 1 error, 0 warnings
Comment 1 Lluis Sanchez 2013-03-20 05:28:56 UTC
I can't reproduce.

Please try manually deleting the .resources files you'll find in the Resources directory (looks like MD doesn't remove them when doing a project clean), rebuild the whole solution and paste here the build output you get.
Comment 2 David Aramant 2013-03-20 10:46:05 UTC
You're right, I can't reproduce it now either.

Could Xamarin Studio 4.0.2 have fixed this?
Comment 3 Lluis Sanchez 2013-03-21 05:59:23 UTC
Maybe, although there isn't an explicit fix on this. If you see the problem again, please reopen the bug.
Comment 4 David Aramant 2013-03-21 10:31:04 UTC
Is creating the .resource files (or at least not cleaning them up) a bug?  VS doesn't create those files.

I should probably expand on what happened when I tried again after your comment.  I could not reproduce the problem with the clean sample solution I uploaded.  However, our real application still had the error.  I checked for .resource files, but there weren't any.  After I deleted the bin/obj directories it started working again, and we have not seen the issue again.