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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T09:42:21+00:00 2026-06-11T09:42:21+00:00

I know I’m not the first person to ask this question on Stack Overflow

  • 0

I know I’m not the first person to ask this question on Stack Overflow and I’m sure I won’t be the last. But, after spending hours researching how to do this and then physically trying to do it, I’m near ready to give up.

I have a .NET Framework 4, C#, WinForms application that builds to an executable. I rely on many many many dlls. The dlls fall into multiple categories.

  • Libraries I have written with no dependencies of their own
  • Libraries I have written with dependencies on other libraries I’ve written
  • Libraries I have written with dependencies on third party dlls
  • Third party stand alone dlls
  • Third party dlls with their own dependencies on other dlls

So after I compile my application I have a directory with an executable and approximately 15 dlls.

I want to pack all the dlls into a single executable so that I can simply distribute a single executable.

I know that IlMerge is the typically suggested application to use for this, but I’m curious if there is something easier to use that is more intuitive and works accross both WinForms and WPF.

  • 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-11T09:42:22+00:00Added an answer on June 11, 2026 at 9:42 am

    In the end, I went an entirely different direction.

    I decided to use the Costura Visual Studio Extensions located here.

    These extensions use a combination of two methods

    • Jeffrey Richter’s suggestion of using embedded resources as a method of merging assemblies
    • Einar Egilsson’s suggestion using cecil to create module initializers

    What’s nice here is that you simply install the extensions into Visual Studio. After doing that, for any project where you want to pack your DLLs into a single executable, simply select the project, click Project on the menu bar, Costura, Configure, and then OK. It will ask you to reload the project – click yes. Now whenever you build the project it will create just a single executable (or DLL if you are doing it on a library). Couldn’t be more easy.

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

Sidebar

Related Questions

I know that there has been one question about this but it is not
I know that this sort of question has been asked here before, but still
i know this is a stupid question but i d'ont know how to do
I know this is a stupid question, but I've looked for 45 mins now
I know this is a very simple question for you experts,but please forgive me.Im
I know this is an oft asked question, but I've tried some of the
I know this is kind of easy question but i cant seem to find
I know this might a simple question, but is there a way to add
I know this question has been asked many times before but I can't find
I know this is a pretty basic question, but I don't know how to

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.