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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T01:37:35+00:00 2026-05-19T01:37:35+00:00

i have a simple app in c#. i would like the DLL to be

  • 0

i have a simple app in c#. i would like the DLL to be “inside” the exe file. how do i do this?

  • 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-19T01:37:35+00:00Added an answer on May 19, 2026 at 1:37 am

    ILMerge does exactly what you are looking for


    the page is a little misleading, ILMerge works on V3 and V4 assemblies per its actual webpage

    ILMerge should work just fine with
    newer versions of .NET. Just use the
    option: /targetplatform:v4,. For
    version 3.5, you probably don’t need
    to set the target platform, but you
    may need to add the v3.5 framework
    directory as a /lib option so that
    assemblies from there can be found.
    (Unless they’re in the GAC in which
    case they’ll be found anyway.) To run
    ILMerge in the v4.0 runtime, use this
    config file.


    To answer how do you use it from your question in the other answer

    Usage: ilmerge [/lib:directory]*
    [/log[:filename]] [/keyfile:filename
    [/delaysign]]
    [/internalize[:filename]] [/t[arget]
    :(library|exe|winexe)] [/closed]
    [/ndebug] [/ver:version] [/copyattrs
    [/allowMultiple]] [/xmldocs]
    [/attr:filename] [/ta
    rgetplatform:[,]
    | /v1 | /v1.1 | /v2 | /v4]
    [/useFullPublicKeyForReferences]
    [/wildcards] [/zeroPe Kind]
    [/allowDup:type]* [/union] [/align:n]
    /out:filename
    […]

    So ilmerge /out:Combined.exe mainFile.exe otherDll.dll for your case as most of the defaults should be fine

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

Sidebar

Related Questions

I'm working on an iPhone app and would like to have a simple text
I have a simple app with a nav bar controller and I would like
I have a simple image viewing iPhone app, and I would like to give
I have a relatively simple Rails app and I would like to store various
This is a real newbie question. I have simple app that selects a picture
I have a simple app with a full screen UIWebView. This contains HTML generated
I have a simple app to add quotes and the possibility to like the
I have a simple web app, it's done with several JSP pages. I would
I am working on an app for Android, but would like to have it
I have a simple PHP app that prints 'hello world'. When I run it

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.