. NET program Deployment (mono mode)

Source: Internet
Author: User

one time my colleague used this word and said it was a professional rub. Deploy the XXX project to the server. Do not wipe a file to run the past. The moon or the sheep I have no idea, my English is not good, the voice of sheep? You call me the Cottage Program ape casually always on this style.

Mono is an open source platform based on the . NET Framework .

Install file download at this address

Http://www.go-mono.com/mono-downloads/download.html

confirmed after the installation of Moon.exe and related directories directly copied away and then run is also possible, so-called green software. Mono itself is an open . NET Framework platform. That means you can run a . NET Framework -based program on a PC that doesn't have the . NET Framework framework installed , and you don't have to install it on the U The disk can be run directly as long as Mono put together. then you refer to which class library to copy the corresponding directory DLL file also put together, plainly speaking is the Moon version of the library file. look at my program only use the Basic class library and then the WinForm and GDI , and then I just copied these files over a total of 4 trillion look LIB\MONO\GAC :

The way mono runs a . NET program is: mono.exe plus the . NET program file name. by the above you will understand that just write a batch of command files is OK .

Double-click the batch file:

see no upper left corner of the default icon becomes Mono 's up. The program works the same as the original. for other computers try it, just did not say that the entire folder copied to the U disk in other computers can be directly run. If you don't see it on a computer that doesn't have a . NET Framework installed, there's a chance that you'll get this error:

root Cause:.net exe is managed code run when first he is looking for mscoree.dll to match the operating system already installed . NETFramework version. Mscoree . DLLexists in the system32 directory.

about the Mscoree.dll For details, please refer to this article. NET in the Behind Heroes: MSCOREE.DLL:

http://blog.csdn.net/atfield/article/details/1750890

 , you can put your system's MSCOREE.DLL  file also copied to u disk directory, and then write a batch file, judging that there is no file with the same name   from the u disk Copy to SYSTEM32  catalog. TOMCAT 

And there's a little bit of a command-line window that runs through batch processing always sucks. in C # you know what a progress can call an external process through parameters, in fact it is similar to batch processing, and C + + has the same thing, This will remove the command-line window. we write a simple C + + code to pass the . NET program as a parameter to Moon Run, the principle is quite clear. I'm not going to map it here, and I can test it.

Next we will introduce the use of setupfactory.
. NET program Deployment (setupfactory mode)

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.