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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T21:46:11+00:00 2026-05-25T21:46:11+00:00

When you embed a resource into a .NET assembly using Visual Studio, it is

  • 0

When you embed a resource into a .NET assembly using Visual Studio, it is prefixed with the assembly name. However, assemblies can have embedded resources that are not assembly-name-prefixed. The only way I can see to do this is to disassemble the assembly using ILDASM, then re-assemble it, adding the new resource — which works, but… do I really need to finish that sentence?

(Desktop .NET Framework 3.5, Visual Studio 2008 SP1, C#, Windows 7 Enterprise x64.)

  • 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-25T21:46:12+00:00Added an answer on May 25, 2026 at 9:46 pm

    Actually, there is a way, but you need to edit the .csproj manually.

    In the .csproj file, find the EmbeddedResource element, which will look like the following:

    <EmbeddedResource Include="Resources\MyImage.png" />
    

    Add a LogicalName child element, as shown below.

    <EmbeddedResource Include="Resources\MyImage.png">
      <LogicalName>MyImage.png</LogicalName>
    </EmbeddedResource>
    

    After making this change, the resource can be fetched as “MyImage.png” – the default namespace and folder name are omitted.

    It looks like this capability has been available since 2005.

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

Sidebar

Related Questions

Is it possible to embed a .net resource (resx) into compiled assembly as a
Okay, so ASP.net allows one to embed Images into an Assembly and access them
using the code How to embed a satellite assembly into the EXE file provided
Using Visual Studio 2005 with the latest Service Pack. I have a managed C++
Is there a way to conditionally embed resources into a .NET project? I.e. if
So I have a Visual Studio 2008 project which has a large amount of
I have a WPF assembly in which I would like to embed five icons
My app bundles a set of VBScripts (UTF8 text files) into a VB.NET assembly.
I have a web application built in asp.net, which uses resource files to support
I embed text in textfield, but sometimes it does not render using htmltext. if

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.