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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T17:59:45+00:00 2026-06-09T17:59:45+00:00

I have a project (.net 2 framework for various reasons) where we are generating

  • 0

I have a project (.net 2 framework for various reasons) where we are generating the schemas off the objects using xsd.exe. We want to embed these schemas into the assembly to use when validating files that are loaded. The xsd file gets generated successfully. I then run al.exe to turn the xsd into an assembly, third stage is that I use ilmerge to merge this assembly into my main assembly so it is available as a resource. I have other resources in there that I have embedded using the using vs way of setting the content type to embeddedResource, I can see those resources in code via a call to GetType().Assembly.GetManifestResourceNames(); I can see the resource that I am after in the manifest of the assembly and it all looks pretty good (not a path name or case issue as far as I can tell). I have looked into the asssembly using ILSpy and ildasm and it all looks ok?

.mresource public MySetup.EmbeddedResources.Mapping.xml      << vs2010 embedded resource
{
 // Offset: 0x00000000 Length: 0x00000C67
}
.mresource public MySetup.EmbeddedResources.Schemas.xsd      << my resource
{
  // Offset: 0x00000C6B Length: 0x00000B47
}

I have tried various options, the same file embeds ok when using vs to embed it and no obvious differences in the manifest either way.

Any idea why GetType().Assembly.GetManifestResourceNames(); is not returning my resource?


Edit: Oops, turns out this was the result of serious brain freeze. It was actually working, but because my Unit tests dll was referencing the old assembly, it wasn’t picking up the merged resources….. Dooh!

  • 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-09T17:59:47+00:00Added an answer on June 9, 2026 at 5:59 pm

    Oops, turns out this was the result of serious brain freeze. It was actually working, but because my Unit tests dll was referencing the old assembly, it wasn’t picking up the merged resource

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

Sidebar

Related Questions

We have an Entity Framework project with several models set up using .NET 4
I have used .net framework 4.0 to design my web project I want to
I am using SourceSafe 2005, and I have a project in VB.NET Framework 4.
I have a C# .NET Compact Framework 3.5 mobile project in Visual Studio 2008.
I have project asp.net with namespace test and I'm using resources (files Resource.resx and
Let's imagine I already have a project building .NET 3.5 assembly. Now I want
I have a project in Java. I want transform it to .NET-project. How to
I have a simple ASP.NET dropdownlist control in a visual studio project (.NET framework
We have one project built upon asp.net framework 2.0. It is completely tested and
I have a project that runs on ASP.net 2 something and .NET framework 2

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.