Scripting. Stuff. (By Froosh)

March 29, 2006

Free VB.Net, C# and J# Compilers

Filed under: C#, J#, VB.NET — Robin Frousheger @ 12:10 pm

I was somewhat surprised to find that the Microsoft .NET Frameworks come supplied with compilers for VB.NET, C# and J#.

As an amateur programmer and general software hack, I really haven't been interested in buying Microsoft's Viral Visual Studio suite just to be able to compile my various micro-applications. Yes, I know the new "Express" versions are free – at the moment that is.

I'm surprised because in this and a few other vaguely remembered ways, the Windows OS has been approaching the "Batteries Included" status that most of the *NIX variants offer. (I love the term Batteries Included – both because I have a child who often need extra batteries purchased for a new toy, and becuase of it's use in describing the Python language)

So, where are they and how can you use them?

C:\Windows\Microsoft.Net\Framework\v2.0.50727\ (or any other version you have installed)

  • csc.exe
  • jsc.exe
  • vbc.exe

Run them from a command line to see all the options available.

Below are some examples of code and how to compile it:

VB.Net Console "Hello World"
C# Windows "Hello World"

Advertisements

Create a free website or blog at WordPress.com.