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:
A .NET assembly (which is usually post-fixed with a .exe or .dll file extension) is actually IL code bundled together with a manifest file. [4] Remember that a .NET assembly is quite different from a normal Windows DLL or EXE file though the file extensions can be the same.
|