Compiling and Linking the Hello World Application

Compiling the "hello world" application is simple, and you do not need Visual Studio .NET to do it. If you are a glutton for punishment and don't mind using a text editor and a debugger that is not integrated with your editor, the Microsoft.NET Framework SDK is all you need to create a simple application with .NET.

The following compilation instructions will work if you have Visual Studio .NET or just the .NET Framework SDK installed:

csc out:/Hello.exe /t:exe Hello.cs

Tip

If you get an error that says "csc is not recognized as an internal or external command, operable program or batch file", make sure that you have your environment configured correctly. There are a few environment variables ...

Get .NET and COM Interoperability Handbook, The now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.