0% found this document useful (0 votes)
4 views

.net presentation

The document provides an overview of the .NET framework, including its components, features, and various implementations for building applications on different platforms. It outlines the steps to set up a .NET desktop application project using Visual Studio and highlights the framework's capabilities in areas such as language interoperability, memory management, and parallel computing. Additionally, it discusses the uses of .NET in IoT, cross-platform apps, web development, and game development.

Uploaded by

Awal Mamane
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

.net presentation

The document provides an overview of the .NET framework, including its components, features, and various implementations for building applications on different platforms. It outlines the steps to set up a .NET desktop application project using Visual Studio and highlights the framework's capabilities in areas such as language interoperability, memory management, and parallel computing. Additionally, it discusses the uses of .NET in IoT, cross-platform apps, web development, and game development.

Uploaded by

Awal Mamane
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 24

Building a desktop

app with the .NET


framework
Agenda
01 Introduction to .NET framework
A general idea about the .NET framework

02 Setting up a .NET desktop application project


How to start a desktop project with VS 2015

03 Building a basic application


Build a desktop Notes application

04 Packaging a .NET app for sharing and delivery


How to build a setup wizard for an application
What is the .NET framework
.NET Framework is a software development framework for building and running
applications on Windows. It is made up of tools, programming languages, and li
braries for building many different types of applications.

There are various implementations of .NET namely:

 The .NET Framework, which is the original implementation of .NET. It suppor


ts running and building websites, services, desktop apps, and more on Wind
ows.
 .NET which is a cross-platform implementation for running websites, service
s, and console apps on Windows, Linux, and macOS. .NET is open source o
n GitHub. .NET was previously called .NET Core.
 Xamarin, which is a .NET implementation for running apps on all the major
mobile operating systems, including iOS and Android.
.NET Multi-platform App UI (.NET MA
UI) is a cross-platform framework for
creating native mobile and desktop ap
ps with C# and XAML.
The .NET architecture
The two major components of .NET Framework are the Common Language Runti
me and the .NET Framework Class Library.

 The Common Language Runtime (CLR) is the execution engine that handles ru
nning applications. It provides services like thread management, garbage collec
tion, type-safety, exception handling, and more.
 The Class Library provides a set of APIs and types for common functionality. It p
rovides types for strings, dates, numbers, etc. The Class Library includes APIs f
or reading and writing files, connecting to databases, drawing, and more.
.NET applications are written in the C#, F#, or Visual Basic programming langu
age. The code from any of these languages is compiled into a Common Interm
ediate Language (CIL). This Compiled code is then stored in assemblies or file
s with a .dll or .exe file extension.

C# code C# compiler CIL

When an application runs, the CLR takes the assembly(.exe or .dll file) and u
ses a just-in-time compiler (JIT) to turn it into machine code that can execute
on the specific architecture of the computer it is running on.
C#
C# code
Compiler

VB.NET Common Intermediate Common Language


VB.NET code Language Runtime
Compiler

F# Machine code
F# code
Compiler
A just-in-time (JIT) compiler is a compil
er that compiles code during program
execution, rather than ahead of time.
Features of the .NET framework
 Language Interoperability: Language Interoperability means code written in a
ny language can be used by other languages and there is an access provided t
o COM components in the System. In other words, this is the ability of code t
o interact with code which is written using a different programming language. It
can help to maximize code reusability and therefore improve the efficiency of th
e development process.

 Portable: The .NET Framework provides a common platform to write portable


programs using different languages of .NET environment, based on open Intern
et standards which allow different devices, software’s and applications to work t
ogether across a wide and dispersed network of networks.

 Type Safety: During program execution, the type checker ensures that all obje
cts and values, and the references to those objects and values, have a valid ty
pe. For example, the type checker ensures that only an integer value is assigne
d to an integer variable. The type checker also ensures that only valid operatio
ns are performed on the objects or values.
 Automatic memory management: While developing applications developers h
ad to develop an eye on system resource like memory. ..NET takes this worry a
way from developer by handling memory on its own. The garbage collector take
s care of freeing unused objects at appropriate intervals.

 Parallel Computing: The NET Framework 4.0 introduces a new programming


model for writing multithreaded and asynchronous code that greatly simplifies th
e work of application and library developers.

 Dynamic Language Runtime: The dynamic language runtime is a new runtime


environment that adds a set of services for dynamic languages to the Common
Language Runtime. The CLR makes it easier to develop dynamic languages ru
n on the .NET framework and to add dynamic features to statically typed langua
ge.
Uses of the .NET framework
.NET powers the world
IoT
.NET used to
build thousands
of IoT devices
worldwide

Cross platform apps


Used to build apps
from smart watches to
server applications

The Web and Cloud


Used to build
websites, web apps
and cloud based
microservices.
.NET is equally used for game develop
ment along with the Unity game engin
e and machine learning with the ML.N
ET framework made for .NET develop
ers
Setting up a .NET desktop app project
with Visual Studio
Select fichier(file) to create a new project
Choose projet(project) to build a desktop app

You can cho


ose other op
tions based
on the type
of project yo
u want
Choose your language, here we will use C#

Choose the platform


you are building for

Choose the type


of app you want
to build

Don’t forget to name


your project
You can start building your .NET desktop app 😁
References
Thank you
We hope you become an excellent .NET developer soon !!!

You might also like