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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T04:35:17+00:00 2026-06-17T04:35:17+00:00

Possible Duplicate: Embedding DLLs in a compiled executable I have a c# winforms application

  • 0

Possible Duplicate:
Embedding DLLs in a compiled executable

I have a c# winforms application along with a few depending .dlls and a dependant external .exe.

Is it possible to somehow complile all of them into one executable (not installer) just stand alone executable?

From VS 2010 Ultimate if possible?

  • 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-17T04:35:19+00:00Added an answer on June 17, 2026 at 4:35 am

    In short: the only way that may work is to add all external files as an embedded resource and use ILMerge.

    Option #1: the following steps show how to embed a resource file Inside Visual Studio :

    1. Go to Solution Explorer,
    2. Right click the resource file,
    3. GO to Build Actions: Select Embedded Resource.

    You will have that file reference inside the exe. Later you can use Reflection and get the resource when you run your application. Borrowed Source Code from here:

    Option #2 with managed dll’s:

    For the managed DLLs you have a couple of options:

    • Use ILMerge. ILMerge has a nice GUI interface that can be found [here]7]
    • Embebed them as a resource, see this article for details.

    Check out the following CodeProject article that explains this .

    ILMerge is a utility that can be used to merge multiple .NET assemblies into a single assembly. ILMerge takes a set of input assemblies and merges them into one target assembly. The first assembly in the list of input assemblies is the primary assembly. When the primary assembly is an executable, then the target assembly is created as an executable with the same entry point as the primary assembly. Also, if the primary assembly has a strong name, and a .snk file is provided, then the target assembly is re-signed with the specified key so that it also has a strong name.

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

Sidebar

Related Questions

Possible Duplicate: Embedding DLLs in a compiled executable I want to compile my C#
Possible Duplicate: Embedding DLLs in a compiled executable Is it possible to embed a
Possible Duplicate: Embedding an external executable inside a C# program I create project MyProj
Possible Duplicate: Does every Core Data Relationship have to have an Inverse? I have
Possible Duplicate: I have a nested data structure / JSON, how can I access
Possible Duplicate: Why does my cout output not appear immediately? I have a very
Possible Duplicate: RegEx match open tags except XHTML self-contained tags I have a HTML
Possible Duplicate: embedding background image data into css as base64, good or bad practice
Possible Duplicate: How is string.find implemented in CPython? I have read many posts here
Possible Duplicate: Floating point division vs floating point multiplication recently, i have written a

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.