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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T16:20:52+00:00 2026-05-17T16:20:52+00:00

Old question: I have an .exe (PE) with IL (.NET) code in it. When

  • 0

Old question:
I have an .exe (PE) with IL (.NET) code in it.
When it is started, a mscorlib.dll (.NET framework) function is called to start IL code.
Can I extract .NET code segment and append it to other program (that calls mscorlib.dll to execute that segment)?

New question:

I want to append the compiled code from a C# .NET program to a native, pure Win32 application that can run without any .NET Runtimes, and execute it by dynamically calling mscorlib.dll’s functions, if .NET is present. This is like a ‘executable joiner’ technique, not a native compilation.

I do not want to write some .NET .exe to a temp directory and execute it; it is already done and now want to get rid of temp folder by calling .NET vm directly on .NET code inside my file (by giving out an offset of found structure/session, or just by assigning correct PE .section name – know just a little about PortableExecutable format).

Reference: http://webcache.googleusercontent.com/search?q=cache:u9tTX2sfkhAJ:social.msdn.microsoft.com/Forums/en/clr/thread/2677c0b6-6b3c-4a51-9fcc-c2d8838c7b8b+compiled+IL

  • 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-17T16:20:53+00:00Added an answer on May 17, 2026 at 4:20 pm

    Perhaps you are looking for a linker that will take your .NET library and referenced assemblies, and create an executable or .dll that can run without requiring .NET to be installed.

    Two commercial options for this are

    • Salamander .NET Linker: http://www.remotesoft.com/linker/. It is pretty expensive, but does exactly that.
    • Xenocode: http://www.xenocode.com/.

    It should also be possible with mono. It has utility called mkbundle which precompiles and add dependencies, but you would need Cygwin and a bit more expertise to get it to work. This question seems like a good start: How to convert a simple .Net console project a into portable exe with Mono and mkbundle?.

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

Sidebar

Related Questions

I have a bit of an unusual question. I'm running an old DOS game
The age old question. Where should you put your business logic, in the database
This might be a old question: Why does IEnumerable<T> inherit from IEnumerable ? This
I found this question in an old question in your website so i thought
(This question is over 6 years old and probably no longer has any relevance.)
Caution: This question is over nine years old! Your best option is to search
There is a similar question going around, but it just got the same old
An old Direct3D book says ...you can achieve an acceptable frame rate with hardware
I have inherited an old crusty PHP application , and I'd like to refactor
I need debug some old code that uses a Hashtable to store response from

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.