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 6014151
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:39:02+00:00 2026-05-23T02:39:02+00:00

I’ve moved all image resources in a large multi-project solution to a new project

  • 0

I’ve moved all image resources in a large multi-project solution to a new project specifically created for shared resources.

Adding a new reference to other projects where the shared images are used is working as expected. The image in the selected button below continues to appear in designer but with issues.

In VS Designer, I’m unable to select shared resources in the Image Editor, having instead to manually edit the designer code.

More specifically, in the Image Editor dialog (accessed from the ‘Image’ property of an existing control) I select ‘Select from File/Resource…” to pop up the Select Resource dialog (shown). There, where I used to access all local project resources (Resources.resx), I would like now to add access to the new shared resources project. Ideally, I would add a second item to the dropdown shown which switches to the resx for the shared resources project.

How can this be done? Is there a better way?

alt text

  • 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-23T02:39:02+00:00Added an answer on May 23, 2026 at 2:39 am

    I was able to share a resx file between project and using it in the designer in VS 2008 SP1 (I don’t know other versions). Differently from other approaches, here resources are statically and dynamically shared, so at runtime there’s really one copy of the shared resources. No storage or memory waste and it’s easy to maintain with tons of projects.

    Follow the guide and tell me if it works for you:

    • Create a class project Resources;
    • Create a resource file (go to Properties -> Resources of the project);
    • Move the resource file (default Resources.resx) to the root of the project;
    • Rename the resources file Resources.resx -> GlobalResources.resx;
    • Modify the resources file modifier to Public (double click on the resources file, "Access Modifier" -> "Public");
    • Copy any resource file to the root directory of the project;
    • Add any resource to the resource file using "Add Existing File" and selecting resources on the root directory of the project.

    The project in the Solution Explorer should look like this:

    enter image description here

    Now in any project you need the resx file to be shared do this:

    • Add the "Resource" project as a dipendency;

    • Edit manually the project file (*.csproj) and add the following lines in the resources file ItemGroup (create a local resource file if you want to see it):

       <ItemGroup>
         ...
         <EmbeddedResource Include="..\Resources\GlobalResources.resx">
           <Link>GlobalResources.resx</Link>
           <Generator>ResXFileCodeGenerator</Generator>
           <LastGenOutput>GlobalResources.Designer.cs</LastGenOutput>
           <CustomToolNamespace>Resources</CustomToolNamespace>
         </EmbeddedResource>
         ...
       </ItemGroup>
      

    Obviously, the "Include" attribute should be the correct relative path to GlobalResources.resx.

    • Use the resources in the designer as you was asking.

    In my project, the following lines are generated and added to the project automatically when I do this:

    <Compile Include="..\Resources\GlobalResources.Designer.cs">
      <Link>GlobalResources.Designer.cs</Link>
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>GlobalResources.resx</DependentUpon>
    </Compile>
    

    If they aren’t added, add them manually.

    Now the project should look like this in the Solution Explorer (likend files should be marked differently):

    enter image description here

    Last two steps:

    • Click on the linked "GlobalResources.resx" and on the Properties set "None" as the "BuildAction". "Custom Tool Namespace" should already be set to "Resources";

    enter image description here

    • Click on the linked "GlobalResources.Designer.resx" and on the Properties set "None" as the "BuildAction".

    enter image description here

    And you are done: at this point you should really be able to use the resources you added in the shared resx in the designer selecting "GlobalResources.resx" in the "Project Resource file" dialog of your question. And as told it’s really shared even at runtime! In the Properties panel you should see the full Namespace and class of the external project. If you remove the dependency on the "Resource" project it doesn’t even compile. If it doesn’t work for you, insist until it works and in case tell me where the guide is wrong. It have to work! Let me know.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
Seemingly simple, but I cannot find anything relevant on the web. What is the
Does anyone know how can I replace this 2 symbol below from the string
this is what i have right now Drawing an RSS feed into the php,
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti

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.