Run the. NET program on a computer that does not have a. NET Framework

Source: Internet
Author: User

useful, special turn of. Thanks to the original author's shared http://anforen.5d6d.com/ . NET program running in No. NET environment

As we all know,. NET programs must run in the. NET Framework environment, which limits the popularity of. NET programs to a large extent, so today I'm going to tell you a way to solve the problem.

Perhaps a lot of people know that flying is developed with. NET, but have you ever wondered why flying a letter can work well in a PC that is not installed in the. NET environment? Can we take advantage of this feature?

You can fly in the installation directory to see vmdotnet This directory, according to the name of the know, this is a virtual. NET running environment, in the following is a directory called v2.0.50727 (i installed Fetion2008 3.5.2), which shows that it is virtual. NET 2.0 Environment , continue to go in, there is a FetionVM.exe, it is our protagonist today, it is because it virtual the operating environment of the. NET, so that fly can run, then we use it to run our. NET program:

1> will copy the Vmdotnet directory, copy your application, and let your executable file be in a directory with FetionVM.exe, as shown below:

  

2. Open cmd, in its input: FetionVM.exe your. NET executable program (in this case TestVMDotNet.exe);

  

3. Program Operation effect:

  

is so simple.

You may ask: I asked not to let my client open cmd, to enter these commands, then you will create an EXE program, let him to detect whether the system has installed the. NET environment, if Ann, then directly start the target program, if not, through the vmdotnet to start. Then there is no doubt that this launcher is not available. NET to write.

Turn from: http://www.cnblogs.com/Deper/archive/2010/05/12/1733912.html#pagedcomment

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.