Hello World in VB.NET without using VS.NET

  • Thread starter Thread starter Andy Sutorius
  • Start date Start date
A

Andy Sutorius

Has anyone successfully created a VB.NET Hello World program without using
Visual
Studio.NET? If so, what IDE did you use and what namespaces did you import?

Thanks!

Andy Sutorius
 
You can use vbc.exe and notepad, SharpDevelop which is opensource. There's
also C# builder but of all the tools, VS.NET is vastly superior overall.
There's no question the value is there.
 
Do you know what namespaces need to imported to produce a console "Hello
World" program?

I have vbc registered in the system variables however have run across what
namespaces are required by VB.NET to compile.

Thanks

Andy Sutorius
 
For a console app, here is the code, save it as a .vb file

' Allow easy reference to the System namespace classes.
Imports System

' This module houses the application's entry point.
Public Module modmain
' Main is the application's entry point.
Sub Main()
' Write text to the console.
Console.WriteLine ("Hello World using Visual Basic!")
End Sub
End Module

now to compile it with command line look here

http://msdn.microsoft.com/library/en-us/vblr7/html/vaconVBCompilerOptions.asp

Now go get sharpdevelop, it is easier
http://www.icsharpcode.net/OpenSource/SD/Default.aspx

Hope this helps

Publicjoe
C# Tutorial at http://www.publicjoe.f9.co.uk/csharp/tut.html
C# Snippets at http://www.publicjoe.f9.co.uk/csharp/snip/snippets.html
 
Back
Top