Bug 5024 - Add warning / disallow attempts to create string resources with invalid characters
Summary: Add warning / disallow attempts to create string resources with invalid chara...
Alias: None
Product: Android
Classification: Xamarin
Component: Designer ()
Version: 4.1.x
Hardware: PC All
: Low enhancement
Target Milestone: ---
Assignee: Jérémie Laval
Depends on:
Reported: 2012-05-11 04:53 UTC by PJ
Modified: 2016-09-01 19:55 UTC (History)
0 users

Tags: XATriaged
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 5024 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 PJ 2012-05-11 04:53:32 UTC
I can use the designer to create string resources, and it will automatically remove all the invalid characters from the resource value when it initializes the resource name. However, I can edit the resource name to be invalid and the designer will still display the string resource correctly.

This then causes build errors.

Resource displays correctly on button: http://screencast.com/t/0kdY1EUcZu
Build errors: https://gist.github.com/2658446

While anyone using string resources should know the limitations, the validity could be checked earlier as an added feature. Filing as enhancement.

Affects VS and MD

Filed against MD 3.0 RC4 (Final AnDevCon RC) and MFA 4.2.0 RC5 (Final AnDevCon RC)
Comment 1 Marek Habersack 2016-09-01 19:55:04 UTC
@Jeremie, any update?