. Net program is running in the environment without. NET Framework

Source: Internet
Author: User

As we all know,. netProgramIt must run in the. NET Framework environment, which restricts the popularization of. net programs. Today I will give you a solution to change the direction.

Many people may know that Apsara is developed using. net, but have you ever wondered why Apsara works well in a PC without the. NET environment installed? Can we use this feature?

You can see the vmdotnet directory in the installation directory of Apsara, Which is virtual.. Net runtime environment. A directory named v2.0.50727 (I installed fetion2008 3.5.2) indicates that it is virtualized. NET environment, followed by a fetionvm.exe, which is the main character of today, because it is virtualized. net runtime environment, so that Feixin can run, then we will use it to run our. net Program:

 

1> store the vmdotnetdirectory and your application in a directory with your executable file and fetionvm.exe, for example:

2. Open CMD and enter fetionvm.exe your .netexecutable Program (testvmdotnet.exe in this example );

3. program running effect:

 

That's simple.

You may ask: I cannot ask my customers to open CMD and enter these commands. Then you can create an EXE program by yourself, let him check whether the system has been installed. NET environment. If it is installed, the target program will be started directly. If not, it will be started through vmdotnet. There is no doubt that this startup program cannot be written using. net.

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.