Getting started with .NET Framework
The .NET Framework is a set of libraries and a runtime, originally designed by Microsoft. All .NET programs compile to a bytecode called Microsoft Intermediate Language (MSIL). The MSIL is run by the Common Language Runtime (CLR).
Below you can find several examples of "Hello World" in various languages that support the .NET Framework. "Hello World" is a program that displays "Hello World" on the display device. It's used for illustrating the basic syntax for constructing a working program. It can also be used as a sanity test to make sure that a language's compiler, development environment, and runtime environment are all working correctly.
Hello World in Boo
Hello World in C#
Console.WriteLine has several overloads. In this case, the string "Hello World" is the parameter, and it will output the "Hello World" to the standard out stream during execution. Other overloads may call the
.ToString of the argument before writing to the stream. See the .NET Framework Documentation for more information.
Hello World in C++/CLI
Hello World in F#
Hello World in IL
Hello World in Nemerle
Hello World in Oxygene
namespace HelloWorld; interface type App = class public class method Main(args: array of String); end; implementation class method App.Main(args: array of String); begin Console.WriteLine('Hello World'); end; end.
Hello World in PowerShell
Hello World in Python (IronPython)
Hello World in Visual Basic .NET
Imports System Module Program Public Sub Main() Console.WriteLine("Hello World") End Sub End Module