Visual Basic 2005 Tips

How to compile a program

First of all, DON'T click build. The program will hang. Every time. The .net compiler still does not work under mac/linux. But what now? The solution is clear: Mono, and a component of monodevelop named mdtool.

First, install Mono (works under Mac/Linux/...) as usual. Afterwards, install mono-basic. That's the VB.Net runtime and compiler from mono.  Afterwards, install monodevelop (http://monodevelop.com)
Instructions on how to do this are available on the mono web site, http://www.mono-project.com .

Then, you should open a terminal and navigate to the directory with the .vbproj. I assume you've got a basic knowledge about terminal work, like changing directories and listing files.

After you can see the .vbproj using "ls", you should invoke:
mdtool build ProjectName.vbproj
There will be some output, and if the output looks similar to this one, you're ready to run your VB app:

Compilation successful
Compilation took 00:00:01.8512820

Build complete -- 0 errors, 2 warnings

Now, how about to run your application?
Assuming you're still in the terminal, navigate to the bin/Debug folder of your source code directory (the one with the .vbproj file) and invoke mono AppName.exe
It should run :)

Greetings,
Yvan

by Yvan Janssens on 2009-07-17 11:30:31
Important Information Tips are provided by the CrossOver Community and Advocates. They are not intended to be used for official CodeWeavers Support. For that, please visit our official support pages.
CodeWeavers or its third-party tools process personal data (e.g. browsing data or IP addresses) and use cookies or other identifiers, which are necessary for its functioning and required to achieve the purposes illustrated in our Privacy Policy. You accept the use of cookies or other identifiers by clicking the Acknowledge button.
Please Wait...
eyJjb3VudHJ5IjoiVVMiLCJsYW5nIjoiZW4iLCJjYXJ0IjowLCJ0enMiOi02LCJjZG4iOiJodHRwczpcL1wvbWVkaWEuY29kZXdlYXZlcnMuY29tXC9wdWJcL2Nyb3Nzb3Zlclwvd2Vic2l0ZSIsImNkbnRzIjoxNzM0NzIyMzMzLCJjc3JmX3Rva2VuIjoiMjZaZVRwQk1FQlU0aEN5UyIsImdkcHIiOjB9