VB.NET on LINUX 9

  • Thread starter Thread starter JFB
  • Start date Start date
Tks for you reply and help....
MONO? what do you mean?
Can you tell me what type of application using vb.net can run in linux 9?
JFB
 
Please leave your shoes and linux at the door.

=)

JFB said:
Tks for you reply and help....
MONO? what do you mean?
Can you tell me what type of application using vb.net can run in linux 9?
JFB
 
JFB,

Not sure what you mean by Linux9, but look into the Mono project. I
don't think it supports VB.NET but it does support C#.
 
JFB,

Not sure what you mean by Linux9, but look into the Mono project. I
don't think it supports VB.NET but it does support C#.

It in fact does support VB.NET - not as completely as C# yet, but the
compiler does mostly work.

The MonoBASIC compier is mbas.
 
Charlie Smith said:
JFB,

Not sure what you mean by Linux9, but look into the Mono project. I
don't think it supports VB.NET but it does support C#.


I assume what he meant by Linux 9 was Redhat Linux 9....
 
Hi Tom,

I am a little bit curious.
It in fact does support VB.NET - not as completely as C# yet, but the
compiler does mostly work.
Are that the extras in VB.net that it has it more than C# from
microsoft.visualbasic or are there more things?


Cor
 
Hi Tom,

I am a little bit curious.
Are that the extras in VB.net that it has it more than C# from
microsoft.visualbasic or are there more things?


Cor

Cor,

The compiler itself handles basic language elements ok and you can
import the Microsoft.VisualBasic namespace - but it is not yet a full
implementation. It is designed to be eventually, but at this time if
you want to do real work on Mono you'll need to do C#.
 
Tom,

I'll change my question, if you leave all things from the
Microsoft.visualbasic namespace out in VB.net, will it than work. (Would be
the first a little bit good reason not to use that in VB.net)

Cor
 
Tom,

I'll change my question, if you leave all things from the
Microsoft.visualbasic namespace out in VB.net, will it than work. (Would be
the first a little bit good reason not to use that in VB.net)

Cor

If you don't use Microsoft.VisualBasic and System.Windows.Forms, then
yes, it will mostly work.... But you can still write GUI apps using
GTK#. Here is a small example:

Option Strict On
Option Explicit On

Imports Gtk
Imports GtkSharp
Imports System

Public Class App

Public Shared Sub Main()

' Initialize the GTK# Application Object
Application.Init()

' Create A Button
Dim btn As New Button("Hello, World!")
btn.Visible = True

' add the event
AddHandler btn.Clicked, AddressOf App.ButtonClicked

' Create the main window
Dim win As New Window("Hello, World!")
win.BorderWidth = 10
win.Add(btn)

' Add the DeleteEvent handler
AddHandler win.DeleteEvent, AddressOf App.DeleteEvent

' Show the window
win.Show()

' Start the app
Application.Run()
End Sub

Private Shared Sub ButtonClicked(ByVal Sender As Object, ByVal E As EventArgs)
Dim btn As Button = CType(Sender, Button)

Console.WriteLine(btn.Label)
End Sub

Private Shared Sub DeleteEvent(ByVal Sender As Object, ByVal E As DeleteEventArgs)

' Close the application
Application.Quit()

End Sub

End Class

This compiles and runs fine on my Gentoo Linux box.
 
Cor said:
Hi Tom,

I am a little bit curious.
Are that the extras in VB.net that it has it more than C# from
microsoft.visualbasic or are there more things?


Cor

The status of the Mono BASIC compiler is given here :
http://www.go-mono.com/mbas.html
The main missing bits listed are :
- No Functions in Modules
- Can't choose ByRef or ByVal
- For...Next and other statements aren't implemented yet
- No Class Properties
- No "Missing" statement
- No exception handling
- No "VB-Style" event handling (I assume this means the "handles"
keyword)
- No Structures

It seems these are very early days, there's no way a typical VB.Net
project will run at the moment. Note that the Microsoft. VisualBasic
library is a seperate issue as this library can be implemented (and is
being implemented) in C#. The current status of this is here :
http://www.go-mono.com/class-status-Microsoft.VisualBasic.html

Beyond that there a quite a few incomplete libraries, WinForms among
others, that will make it hard to port an average Windows.Net App for
a year or two, as can be seen by the roadmap :
http://www.go-mono.com/mono-roadmap.html
 
Hi Tohear,

Thank you, it looks very intresting because this would make VB.net a
language usable on all OS which are created after 1990 I think. But that
only as far as I can see it now, because it has now something as a probably
will be sitiuation.

Cor
 
The status of the Mono BASIC compiler is given here :
http://www.go-mono.com/mbas.html
The main missing bits listed are :
- No Functions in Modules
- Can't choose ByRef or ByVal
- For...Next and other statements aren't implemented yet
- No Class Properties
- No "Missing" statement
- No exception handling
- No "VB-Style" event handling (I assume this means the "handles"
keyword)
- No Structures

It seems these are very early days, there's no way a typical VB.Net
project will run at the moment. Note that the Microsoft. VisualBasic
library is a seperate issue as this library can be implemented (and is
being implemented) in C#. The current status of this is here :
http://www.go-mono.com/class-status-Microsoft.VisualBasic.html

Beyond that there a quite a few incomplete libraries, WinForms among
others, that will make it hard to port an average Windows.Net App for
a year or two, as can be seen by the roadmap :
http://www.go-mono.com/mono-roadmap.html

That list is a little out of date... The current compiler, while it is
still not complete, does infact support For-Next, For-Each, most of the
conversion functions (not DirectCast), etc.

It does have a ways to go to be truely useful. Currently, like I said
before, if your doing Mono - C# is really the way to go at this point.
Mono is a cool project, one that I hope succeeds.
 
Back
Top