Bug 34045 - resgen fails when processing a resx that contains a path with backslashes
Summary: resgen fails when processing a resx that contains a path with backslashes
Status: NEW
Alias: None
Product: Tools
Classification: Mono
Component: resgen ()
Version: 3.4.0
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2015-09-17 23:41 UTC by daspits
Modified: 2017-08-31 14:49 UTC (History)
3 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 34045 on GitHub or Developer Community 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: GitHub Markdown or Developer Community HTML
  • 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 daspits 2015-09-17 23:41:16 UTC
We have a resx file that contains a "data" element whose type is "System.Resources.ResXFileRef, System.Windows.Forms". The "value" element contained in the "data" element is a relative path that contains backslashes, because the resx file was originally generated on Windows. When we try to run resgen on a resx file with the path, "Resources\icon.ico" in it, we receive the following error:

Error: Invalid ResX input.
Position: Line 194, Column 5.
Inner exception: Could not find file "/absolute/path/to/working/directory/Resources\icon.ico".

If we change the path so that it only uses forward slashes, resgen works.