The .NET Framework2:34 with Jay McGavren
We've been running our C# programs with the command `dotnet run`. So what is this .NET, exactly?
We've been running our C# programs with the command
dotnet run. So what is this .NET, exactly?
.NET is a framework developed by Microsoft with the intent to improve on earlier work by Sun Microsystems with Java and its "virtual machine". .NET is a platform that can run programs written in various languages, including C#, F#, and Visual Basic.
.NET Framework Languages
- Visual Basic
C#, F#, and Visual Basic all compile down to an intermediate language, which is handled by the .NET Common Language Runtime, or CLR. This intermediate language isn't intended to be written or read by humans, and it can't be executed directly a computer processor, either. The CLR is responsible for compiling the intermediate language into machine language, which a computer processor can run.
This used to mean that your users would have to download and install .NET in order to run your finished program. But now it's possible to create a self-contained deployment: an executable that contains the .NET runtime so it can run all by itself, without .NET installed on the target system. Because self contained deployments include the .NET runtime, they're a bit larger in size, so it's also still possible to create a framework-dependent deployment. These require your users to install the .NET runtime separately, but they're also a bit smaller.
You need to sign up for Treehouse in order to download course files.Sign up