Skip to content

Use generated resource helper#729

Closed
mjbvz wants to merge 6 commits intomicrosoft:masterfrom
mjbvz:designer-resources
Closed

Use generated resource helper#729
mjbvz wants to merge 6 commits intomicrosoft:masterfrom
mjbvz:designer-resources

Conversation

@mjbvz
Copy link
Copy Markdown
Contributor

@mjbvz mjbvz commented Mar 3, 2016

Defect
To get string resources, we currently, access everything through an SR class. This class hardcodes a bunch of strings keys to lookup resources in a resx. Hardcoding these strings is not great because these strings can get out of sync with the actual rest file .

Fix
This hooks up the resx file to generate an typed cs file automatically. This ensures that the resx file and the string resource uses cannot get out of sync.

The existing class is also kept around since a number of places are using the resources ids as attribute arguments currently.

Sorry about the Common/Tests/Utilities.UI/UI/InteractiveWindow.cs getting included in this change. It's just a line ending change that should be resolved once #727 goes in.

mjbvz added 6 commits March 1, 2016 14:13
**Defect**
To get string resources, we currently, access everything through an SR class. This class hardcodes a bunch of strings to lookup resources in a resx by name. Hardcoding these strings is not great because these strings can get out of sync with the actual resx file.

**Fix**
This hooks up the resx file to generate an typed cs file automatically. This ensures that the resx file and the string resource uses cannot get out of sync.
@msftclas
Copy link
Copy Markdown

msftclas commented Mar 3, 2016

Hi @mjbvz, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!


It looks like you're a Microsoft contributor (Matt Bierner). If you're full-time, we DON'T require a Contribution License Agreement. If you are a vendor, please DO sign the electronic Contribution License Agreement. It will take 2 minutes and there's no faxing! https://cla.microsoft.com.

TTYL, MSBOT;

@mousetraps
Copy link
Copy Markdown
Contributor

Let's table this change for now. I understand it's a simple refactor, but it's is a rather large change to take and verify so close to a release, and isn't really solving any immediate problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants