Bug 5184 - MonoDevelop resX loading error
Summary: MonoDevelop resX loading error
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: XML Editor ()
Version: 3.0.x
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-05-19 03:19 UTC by Thomas Goldstein
Modified: 2015-08-05 02:13 UTC (History)
3 users (show)

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


Attachments
Project test case (42.19 KB, application/octet-stream)
2012-05-19 03:19 UTC, Thomas Goldstein
Details


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:
Status:
RESOLVED FIXED

Description Thomas Goldstein 2012-05-19 03:19:12 UTC
Created attachment 1923 [details]
Project test case

MonoDevelop cannot build the attached project, and gets stuck on an resx file.

Error (in French):

(...)\Properties\Resources.resx: Error: Error: Le fichier ResX Le type System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a dans les donn‚es … la ligne 121, position 4, est introuvable. Ligne 137, position 5. ne peut pas ˆtre analys‚.

Position: Line 137, Column 5.

Inner exception: Le type System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a dans les donn‚es … la ligne 121, position 4, est introuvable.
Comment 1 João Vitor 2013-05-03 19:26:36 UTC
I think I'm having the same issue:

D:\Projects\tmp\Projects\jvlppm\Jv.Social\third-party\WinRT.NET\WinRT.NET.Forms\Properties\Resources.resx(5,5): Error: Error: ResX file Type System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a cannot be located. Line 123, position 5. cannot be parsed.

Position: Line 123, Column 5.

Inner exception: Type System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a cannot be located.

 (WinRT.NET.Forms)


Using Xamarin.Studio 4.0.3, on Windows x64, .NET 4.0 and 4.5.

The error points to these lines under the resource file:

<data name="Image_BackButton_Normal" type="System.Resources.ResXFileRef, System.Windows.Forms">
    <value>..\Resources\Image_BackButton_Normal.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
  </data>


If I remove them, I can compile the project, but when I try to access the resource it gives me null.
Comment 2 João Vitor 2013-12-20 14:22:28 UTC
I'm not having this issue anymore while building on mono and monodevelop master.
The project compiles and the resource is loaded normally at runtime.
Comment 3 David Karlaš 2015-07-07 13:32:22 UTC
Per comment 2, I'm closing this.
Comment 4 Thomas Goldstein 2015-08-05 02:13:20 UTC
I can confirm the bug has been fixed. Thanks.