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.