What is .NET? The Microsoft Programming Framework
If you are new to writing software for Windows personal computers (PCs) it is not long before you come across Microsoft .NET (pronounced dot net). What is .NET? The simplest answer is to say that .NET is used to build and run programs on a computer. (For the complete beginner who knows nothing about computer programs read our article What is Computer Programming?)
Windows Developers Can Use Microsoft .NET When Programming
This article provides a brief explanation, as an introduction, to answer the question, what is .NET? Microsoft .NET is an important Windows technology to ease the development of computer programs. It is shipped for free with Microsoft Windows and thus available on millions of computers around the world.
.NET Provides a Framework to Help Write Complex Programs
Whenever you see a building, such as an office block or skyscraper, being constructed you will notice that a steel frame is used to provide the basic structure. On to this frame are fixed walls, windows, floors, ceilings and everything else that makes up a building. The framework is made of steel beams, rivets and welds. Everything that is attached to it is made from common building materials and components. It is the architects and builders that determine the final look of the building using standard components.
A similar thing occurs when computer programs are written, the software developer (a.k.a. computer programmer) decides the final functionality and look of a program but will use an existing set of components to help achieve the end requirement.
Microsoft .NET Libraries
Microsoft .NET is a computer framework that contains hundreds of useful components. The components are gathered together into libraries, to organize the components into categories. Libraries with components to draw on the screen, read input, talk to the Internet, etc. This allows the programmer to concentrate on producing the functionality of the software and not have to work on the code that controls the hardware. Modern software programs are written with a tool called an Integrated Development Environment (IDE). An IDE allows the programmer to write the code in an editor, run the code to test it and use a debugger to fix any errors found during testing. Many IDEs come with a set of common existing components to use, such as text boxes, buttons and image containers. Microsoft provides the Visual Studio IDE. Here's an IDE in use:
With the .NET framework and an IDE it only takes a few lines of code to get a simple program working. The speed of software development using .NET makes it a very useful framework for developers writing Windows programs.
Programmers and other companies can produce their own components and bundle them into their own libraries, many do. A programmer will often developer a library of routines that they reuse in new software projects. Very large and complex programs will be broken down into different sections, those sections will usually be contained in their own libraries to help with a program's design and maintenance. Not only is .NET a comprehensive set of libraries for all of the facilities that a program could need, but it is also an environment in which a program executes.
Microsoft .NET Runtime Engine
Most computer programs are written in a high-level logical computer language. Whereas the computer itself runs code that is stored as binary numbers. The process of converting the programmers high-level code to the computers binary code is called compiling. Microsoft .NET adds a layer between the high-level code and the binary code called the Common Language Runtime (CLR). The CLR allows programmers to pick from a variety of high-level languages with which to write software and allows the computers to execute that code in an efficient and secure manner. It means that many types of computers with different types of microprocessors call all run the same .NET program efficiently.
From NET Framework to .NET Core
When Microsoft first produced .NET it was built for Windows PCs. If you run Windows it is likely that .NET is installed in the
With several versions of .NET stored in the subdirectories under Framework64 (for 64-bit .NET) and Framework (for 32-bit .NET). Each version provides C# and Visual Basic compilers to enable Windows programs to be built. There is a build tool from more complex projects, called MSBuild, and other utilities related to .NET programming for PCs. This means that programs can be written for a PC on Windows just using a text editor, e.g. Windows Notepad. However, an IDE or a more powerful text editor, like Visual Studio Code does make it easier to write an app.
To enable .NET to support more types of computers, operating systems and servers, Microsoft has developed .NET Core. This version of .NET allows .NET apps to be written and run on computers that do not use Windows. This is good for the programmer as the same code can be used across multiple types of devices and environments, much like C code. Windows has not yet been configured with .NET core as standard, but it can be obtained from the .NET website. It can be installed by other software, usually by an app's installer. Some IDE's will install .NET Core, as will the .NET core Software Development Kit (SDK). If the .NET Core SDK is on a Windows PC it can be found in the
C:\Program Files\dotnet directory. Unlike the original .NET Framework, which has individual programs for various features, for example, csc.exe for the C# compiler, .NET Core uses the dotnet program to invoke the .NET features for building .NET apps.
Now you know that .NET is on Windows, grab an IDE and start building .NET programs.
- See also the Mono Project.
- For a list of useful programming tools see the article Computer Programming Tools - Free Software Downloads.
- See the Tek Eye website Index for a full list of the articles available.
- The building framework picture was cropped from a Wikimedia image.
- The .NET Runtime Image was derived from a Wikimedia image.
Author:Daniel S. Fowler Published: Updated: