Skip to content
This repository has been archived by the owner on Apr 11, 2020. It is now read-only.

resx resources get embedded with the wrong resource identifier if the project's default namespace differs from the project name #311

Closed
oliverw opened this issue Dec 1, 2015 · 4 comments

Comments

@oliverw
Copy link

oliverw commented Dec 1, 2015

The compiler currently embeds resx resources with the wrong resource identifier if the project's default namespace differs from the project name.

Scenario:

  • Project Name: ConsoleApp1
  • Default Namespace: ConsoleApp
  • Resource Name: Resource.resx

Expected behavior:

The resource would be embedded as ConsoleApp.Resource.resources

Actual behavior:

The resource is embedded as ConsoleApp1.Resource.resources

This is especially bad as Designer.cs files generated from .resx resources use the correct identifier when instantiating the resource manager resulting in MissingManifestResourceExceptions thrown at runtime when accessing any of the generated properties.

Link to demo project

@oliverw oliverw changed the title resx resources are embedded with the wrong resource name resx resources get embedded with the wrong resource identifier if the project's default namespace differs from the project name Dec 1, 2015
@sayedihashimi
Copy link
Contributor

TFS: 168817
I've added this to our internal TFS, we will reply back here soon.

@sayedihashimi
Copy link
Contributor

Should be fixed in our upcoming RC2 release

@fubar-coder
Copy link

This is not fixed yet (preview 2). The workaround with "namedResource" isn't usable when you have hundreds of embedded resource files.

@fubar-coder
Copy link

@sayedihashimi It's not fixed. please reevaluate the issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants