Unit 1
Unit 1
Unit 1
Asst. Prof.
DBUU
Dot net is a technology created by Microsoft
Company to develop multiple applications.
Console Application
Windows Application
Web Application
Web Services
Web API
The .NET Framework is revolutionary
platform created by Microsoft for
developing applications.
Version number CLR version Release date
1.0 1.0 13-02-2002
1.1 1.1 24-04-2003
2.0 2.0 11-07-2005
3.0 2.0 07-11-2006
3.5 2.0 19-11-2007
4.0 4 12-04-2010
4.5 4 15-08-2012
4.5.1 4 17-10-2013
4.5.2 4 05-05-2014
4.6 4 20-07-2015
4.6.1 4 17-11-2015
4.6.2 4 02-08-2016
4.7 4 05-04-2017
4.7.1 4 17-10-2017
4.7.2 4 30-04-2018
4.8 4 18-04-2019
Version .NET Framework Visual Studio
C# 1.0 .NET Framework 1.0/1.1 Visual Studio .NET 2002
C# 2.0 .NET Framework 2.0 Visual Studio 2005
1. Private Assembly :
A private Assembly is used only by a single
application, and usually it is stored in that
application's install directory.
2. Shared Assembly :
A shared Assembly is one that can be
referenced by more than one application. If
multiple applications need to access an
Assembly, we should add the Assembly to the
Global Assembly Cache (GAC).
Each computer on which the Common
Language Runtime is installed has a machine-
wide code cache called the 'Global Assembly
Cache'.
GAC is a folder in Windows directory to store
the .NET assemblies that are specifically
designated to be shared by all applications
executed on a system.
Assemblies can be shared among multiple
applications on the machine by registering
them in global Assembly cache(GAC).
The GAC is automatically installed with the
.NET runtime. The global assembly cache is
located in 'Windows' directory and inherits the
directory's access control list that
administrators have used to protect the
folder.
A namespace is designed for providing a way
to keep one set of names separate from
another. The class names declared in one
namespace does not conflict with the same
class names declared in another.
Defining a Namespace:
A namespace definition begins with the
keyword namespace followed by the
namespace name as follows:
namespace namespace_name {
// code declarations
}