4.2. Some .NET specifics

During the compilation phase, a new file Hello.exe is created. Although it may seem so, remember that this particular 'executable' is unlike the other .exe files that are created using a conventional non-.NET compiler (such as Visual Studio 6 or the ancient Turbo C++). This .exe file is a .NET assembly – it can only run if the .NET framework has been installed on the local machine. If you copy HelloWorld.exe to another Windows PC which does not have the .NET framework installed and try to execute it, it will not run.

The .NET framework [2] would have been installed if either of the following had been previously installed:

[2] At the time of writing, the .NET Framework Service Pack 2 has been released. This takes care of ...

Get From Java to C#: A Developer's Guide 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.