Let’s say I want to run a .NET application on a machine where the .NET framework is not available; Is there any way to compile the application to native code?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
Microsoft has an article describing how you can Compile MSIL to Native Code
You can use Ngen.
Unfortunately, you still need the libraries from the framework in order to run your program. There’s no feature that I know of with the MS .Net framework SDK that allows you to compile all the required files into a single executable