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 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.
Created attachment 3586 [details]
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
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.
You're right, I can't reproduce it now either.
Could Xamarin Studio 4.0.2 have fixed this?
Maybe, although there isn't an explicit fix on this. If you see the problem again, please reopen the bug.
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.