Bug 5015 - Resource Id for .resx file is not saved to project file after editing.
Summary: Resource Id for .resx file is not saved to project file after editing.
Status: RESOLVED INVALID
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: 2.8.8.4
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-05-10 18:51 UTC by Felix Collins
Modified: 2015-08-20 17:21 UTC (History)
2 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 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 INVALID

Description Felix Collins 2012-05-10 18:51:33 UTC
I have a set of resx files in another project which I have added to my monotouch project. I'm not sure if it is relevant that they are out of the source tree for the project. I set everything up and it I can retrieve resources at run time. If I close the solution and reopen it the Resource Id for the default resx file gets modified. Specifically it goes from "MobileBullet.MobileBullet.Resources.Localization.resources" to 
"MobileBullet.MobileBullet.Localization.resources".
This then causes a missing resource manifest exception when I run and try to get a resource.  The resx file in question is called Localization.resx and is "linked" into the project source tree at /MobileBullet/Resources.  The project name is MobileBullet.MT but the project output file is simply called MobileBullet.dll. So the resource ID generated as <dll filename>.<internal project path>.<resx filename>.resources should be MobileBullet.MobileBullet.Resources.Localization.resources as above.  Monodevelop seems to be removing the second level project folder name ("Resources") from the id when it load the solution.
I'm pretty sure that MD shouldn't be modifying the resource id on solution load anyway.  I have to manually revert the name and do a rebuild of the project in order to fix this.
Comment 1 Felix Collins 2012-05-22 18:38:57 UTC
Actually it appears that what has been happening is that MD was not saving the changes to the project file.
Comment 2 Lluis Sanchez 2015-08-20 13:49:59 UTC
Is this still an issue?
Comment 3 Felix Collins 2015-08-20 17:21:48 UTC
Not sure. That was a long time ago! Closing as have moved on to other projects and don;t have time to repro with latest versions..