Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8662031
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T16:38:18+00:00 2026-06-12T16:38:18+00:00

I have a dll which contains some resx files as EmbeddedResources for the localization.

  • 0

I have a dll which contains some resx files as EmbeddedResources for the localization.
That dll is used mostly for the creation of ASP.NET websites and it’s worked fine.

But when I use the dll in my test project (basically that’s just another dll), I can’t have access to the satellite assemblies content, for example I can’t access to the English translation of my messages. It return only the fallback messages.

Code used :

ResourceManager _resourceManager = new ResourceManager(baseName, Assembly.GetExecutingAssembly());
_resourceManager.GetString(key, cultureInfo);

baseName is the fully qualified name of the resource, for example: myNamespace.MyResourceName.

I’m thinking that it’s the loading of the dll which is different when the project is a dll or a website, but I don’t know how to load it correctly.

Anyone have an idea or a tip?

Thanks.

Edit:
I have the dll A with some resx:

  • Messages.resx
  • Messages.en.resx
  • Messages.de.resx
  • etc…

At the end of the build, it generates some dlls:

  • A.dll
  • en/A.resources.dll
  • de/A.resources.dll
  • etc…

If the dll A is referenced by a website, the website can have access to the localized resource, like a message in en or de.
But if it’s another dll like my unit tests dll which references the dll A, it’s always the fallback messages which are returned.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T16:38:19+00:00Added an answer on June 12, 2026 at 4:38 pm

    It appears that the problem coming from the use of the ResourceManager in the unit test, the languages folder aren’t copied in the base folder used by the unit tests, see this question: ResourceManager.GetString fails in unit tests.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ASP.Net application that references a DLL which contains a singleton. The
I have a DLL (Test.dll) which contains some Excel Addin, i don't know which
I have a dll called utilities which contains some helper methods and I want
I have a DLL which contains a class with static members . I use
Hi I have a plugin.dll which contains this all npp functions I have embeded
I have a C++ dll which implements several COM interfaces, that I'm trying to
By ASP.NET MVC plugin architecture, Plug-in architecture for ASP.NET MVC I have separated DLL(plugin)
That's what I wanna achieve : There will be dll which contains only methods
I have an applet which contains some images, regular java classes and class, which
I have created a Class Library (called as GNGEngine.dll) which performs some image processing

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.