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

  • Home
  • SEARCH
  • 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 544237
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T10:38:00+00:00 2026-05-13T10:38:00+00:00

I have a C# class library that contains several resources files organized in folders.

  • 0

I have a C# class library that contains several resources files organized in folders. Since I want the generated classes to be all in the same namespace I’m setting the CustomToolNamespace property of each resource file.

However I discovered through Reflector that although the classes are all being generated in the same namespace the path to the embedded resources contains the directory name in which the resource file is placed.

For example in a project where FolderCustomNamespaceRes.resx is placed inside a directory named Folder.

removed dead ImageShack link

And where CustomToolNamespace for FolderCustomNamespaceRes.resx is set to PublicResourcesTest, Reflector shows that the path to the embedded resource assembly is PublicResourcesTest.Folder.FolderCustomNamespaceRes.resources

removed dead ImageShack link

Is this a bug or am I missing something?

  • 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-05-13T10:38:00+00:00Added an answer on May 13, 2026 at 10:38 am

    After some search I found out that the manifest name of the embedded resource can be controlled by adding metadata in the .cspproj file.

    Before you would have something like:

    <EmbeddedResource Include="Folder\FolderCustomNamespaceRes.resx">
       <Generator>PublicResXFileCodeGenerator</Generator>
       <LastGenOutput>FolderCustomNamespaceRes.Designer.cs</LastGenOutput>
       <CustomToolNamespace>PublicResourcesTest</CustomToolNamespace>
    </EmbeddedResource>
    

    And to control the manifest name you would have to add:

    <EmbeddedResource Include="Folder\FolderCustomNamespaceRes.resx">
       ....
       <LogicalName>$(RootNamespace).FolderCustomNamespaceRes.resources</LogicalName>
    </EmbeddedResource>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using C# in VS2005. I have a class library that contains several enums
I have 2 projects: A Class Library that contains my classes/business logic A WPF
I have a class library that contains a number of classes. I would like
I have an assembly which contains several UserControl objects that I want to be
I have a library that contains a subclass of the Android Application class. The
I have a C# class library that contains methods that need to be used
I have F# class library assembly that contains two functions: let add a b
I have an assembly (.NET class library) that contains an object that implements EAP
I am writing a class library that contains classes with purely internal members. I
I have a Visual Studio 2010 solution that contains a class library (ProjectA) and

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.