Chapter 1 – Hello, C#! Welcome, .NET Core!
- Why can a programmer use different languages to write applications that run on .NET?
Multiple languages are supported on .NET because each one has a compiler that translates the source code into IL (intermediate language) code. This IL code is then compiled to native CPU instructions at runtime by the CLR.
- What do you type at the Command Prompt to compile C#?
- For .NET Framework, we type
csc sourcecode.cs
- For .NET Core using .NET CLI in a folder with a
project.json
file, we typedotnet build
- For .NET Framework, we type
- What is the Visual Studio 2015 keyboard shortcut to save, compile, and run an application without attaching the debugger?
Ctrl + F5
- What is the Visual Studio 2015 keyboard shortcut to view the Error List?
Ctrl + W, E
- What does
ildasm.exe
do?The IL Disassembler (
ildasm.exe
) tool reveals the manifest, metadata, embedded resources, and IL code inside a compiled .NET assembly. - Is the .NET Core better than the .NET Framework?
It depends on what you need. The .NET...