Bug 16814 - Resource IDs are lost when closing Xamarin Studio
Summary: Resource IDs are lost when closing Xamarin Studio
Status: NEW
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Project Model ()
Version: 4.2.x
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: master
Assignee: Lluis Sanchez
Depends on:
Reported: 2013-12-16 05:55 UTC by leigh.bowers
Modified: 2014-01-03 15:40 UTC (History)
2 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 16814 on Developer Community or GitHub 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: Developer Community HTML or GitHub Markdown
  • 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 leigh.bowers 2013-12-16 05:55:03 UTC
I've specified Resource IDs for each of my project's images, mainly so that they can be referenced from within XCode. Everything works as expected, until I close Xamarin Studio. When I re-open Xamarin Studio and my solution, the Resource IDs have been lost - they are now blank again.

This is still an issue with the alpha build referenced here: http://forums.xamarin.com/discussion/11249/resource-ids-being-forgotten#latest
Comment 1 Mikayla Hutchinson [MSFT] 2013-12-19 14:43:44 UTC
I suspect that XS is not saving the project after changes are made in the property pad.

If so, you could be able to work around it by opening Project Options, and clicking OK. This would cause the project to be saved.
Comment 2 Lluis Sanchez 2014-01-03 04:48:37 UTC
I can reproduce the issue when the file has a build action other than EmbeddedResource. Notice that the resource ID only makes sense for files with EmbeddedResource build action. Xamarin Studio should not allow entering a value in other cases.
Comment 3 Mikayla Hutchinson [MSFT] 2014-01-03 15:40:47 UTC
Lluis, that's not true. The resourced ID corresponds to the LogicalName metadata, which is used for several other kinds of build action for iOS and Android projects.