Bug 4950 - Setting a widget's text to a string resource creates incorrect reference
Summary: Setting a widget's text to a string resource creates incorrect reference
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Android Designer ()
Version: 2.9.x
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Lluis Sanchez
URL:
Depends on:
Blocks:
 
Reported: 2012-05-08 16:04 UTC by PJ
Modified: 2012-05-09 12:17 UTC (History)
0 users

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 FIXED

Description PJ 2012-05-08 16:04:35 UTC
If I have a string resource called 'thisIsTheMoment' and I try to set a new widget's text property to this resource, the resource is referenced as 

@String/thisIsTheMoment

instead of

@string/thisIsTheMoment

Which results in:

http://screencast.com/t/dcPXdCn8SiQ

and a build error:

    /Library/Frameworks/Mono.framework/External/xbuild/Novell/Novell.MonoDroid.Common.targets: error : Tool exited with code: 1. Output: /Users/pjbeaman/Projects/DesignerTestingTake19/DesignerTestingTake19/obj/Debug/res/layout/main.axml:22: error: Error: No resource found that matches the given name (at 'text' with value '@String/thisIsTheMoment').


MD 2.9.6 RC2
Comment 1 Lluis Sanchez 2012-05-09 12:17:34 UTC
Fixed in master.