2076 3

CSC378 ยท 2076 ยท 5 marks

What do you mean by Microsoft Net framework? Explain with example.

What do you mean by Microsoft Net framework? Explain with example.[5]

NET Centric ComputingChapter 2: Introduction to ASP.NET.NET and ASP.NET frameworks

Quick answer

The .NET Framework is a software development platform developed by Microsoft that provides a controlled programming environment where software can be developed, installed, and executed on Windows-based operating systems. It provides tools and libraries for building and running applications using multiple programming languages such as C#, F#, and Visual Basic.

Microsoft .NET Framework

Definition

The .NET ecosystem includes several implementations:

  • .NET Framework (original Windows-based platform)
  • .NET Core (modern, cross-platform version)
  • Mono (open-source, cross-platform implementation)

Key Components of .NET Framework

1. Common Language Runtime (CLR)

The CLR is the execution engine of .NET. It manages code execution, memory management, and security. Code written in .NET languages is compiled into Intermediate Language (IL), which the CLR then executes.

2. Class Libraries / Base Class Library (BCL)

A large collection of reusable classes, interfaces, and value types that provide common functionality to all .NET applications.

3. Application Models / Technologies

TechnologyPurposeExample
Win FormsForm-based desktop applicationsNotepad-like client apps
ASP.NETWeb-based applicationsRuns on Chrome, Firefox, etc.
ADO.NETDatabase interactionOracle, Microsoft SQL Server

.NET Core (Modern Version)

.NET Core is the newer, improved version of the .NET Framework. It is:

  • Open-source -- maintained by Microsoft on GitHub under MIT and Apache 2 licenses
  • Cross-platform -- runs on Windows, macOS, and Linux
  • Modular and lightweight -- written from scratch for performance
  • Supports multiple languages -- C#, F#, Visual Basic
  • Wide range of applications -- mobile, desktop, web, cloud, IoT, games, machine learning
  • Consistent across architectures -- x64, x86, and ARM

Mono

Mono is another example of a cross-platform .NET implementation available on Windows, macOS, Linux, and more. It was originally designed as an open-source implementation of .NET Framework on Linux.

Example: The Unity game engine uses C# through Mono as a cross-platform way of creating video games. Mono provides the means to compile and run C# programs, similar to the .NET Framework.


Simple Example (C# Console Application on .NET Core)

using System;

namespace HelloDotNet
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello from .NET Framework!");
            Console.WriteLine("Platform: Cross-platform with .NET Core");
        }
    }
}

Output:

Hello from .NET Framework!
Platform: Cross-platform with .NET Core

This simple program can be compiled and run on Windows, macOS, or Linux using .NET Core, demonstrating the cross-platform nature of the framework.


Summary

FeatureDescription
DeveloperMicrosoft
Languages SupportedC#, F#, Visual Basic
Platform (.NET Core)Windows, macOS, Linux
Application TypesWeb, Desktop, Mobile, Cloud, IoT, Games
Open SourceYes (.NET Core on GitHub)

The .NET Framework (and its modern evolution .NET Core) provides a unified, powerful, and flexible environment for building a wide variety of applications across multiple platforms.

Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.