3 thoughts on “How to use Mono to execute .NET program”

  1. The effect of using Mono to achieve the .NET framework can be across the platform.
    example: use Mono to get rid of the framework and cross the platform. Note: The test results show that the speed of the .NET program using Mono was the fastest.
    First download the source code or the latest version of Mono's official website, and then install it. I use version 2.2
    In the test of friends in order to facilitate the test of friends, I provided me with the Mono version of this test 2.2:
    download address:
    In the installation, open the directory, find two sub -directory, the name is BIN, lib, and then copy it to another directory [because it is installed in C drive by default when installing] and then put you on you The development program is also copied to this directory; assuming this directory name is VM, then there should be a minimum of three files in your folder, one is the BIN folder, the other is a lib folder, and the other is you. The program is written.
    Then you can use C to write a guidance program to call your .NET program; post a simple code:
    int main () {winexec ("bin mono.exe, your application.exe .exe ", Sw _); Return 0;} Of course, for the sake of convenience, you can judge in the logic yourself, which version of the .NET in the machine? If the version is low, call Mono to execute. If it matches, Mono will not be called.
    [This example only supports simple WinForm and database access, at the end of the article]
    If as I said all the way, it must be running, but you will find that now you. Net program is a green software, but the size of LIB in his directory, or the size of the BIN folder is very scary. Essence Essence Is there a size of more than 300m, isn't this conflicting with our thoughts? Of course not; let's streamline the directory:
    In the BIN directory, keep the following files, other deletes

    and then open the lib folder, keep .dll under the 2.0 folder, mscorlib.dll, mscorlib.dll.mdb, and then keep the following folders in the GAC folder [All the class libraries in the figure below are retained, it is best not to delete]:

    . It's almost the same, of course, you can customize the various types of libraries you need according to your needs. Then pack it. Take my own machine as an example. The compressed file is 9.8m, which is much smaller than the framework of the .NET 2.0, but it is still larger than the virtual machine of Fetion. From a different perspective Copyright issues can also be called various databases. The test operation of this machine is the SQL Server 2005 database, which is normal. Let your .NET program also cross the platform! Only Mono can do this.
    This is quoted by others. It should be better here. Citation address:
    H ... t —— p -: -:/... hi./44498/item/main/main/main You can't write a link now, otherwise you need to appeal.

Leave a Comment

Shopping Cart