Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between ASP.NET and .NET framework version

I realize this is probably a hopelessly newbie question, but what is the difference between the ASP.NET version and the .NET framework version?

I am making an asp.net site using the .net 3.5 framework, but when I echo this;

System.Environment.Version.ToString()

I get "2.0.50727.4927".

Is this then an ASP.NET 2.0 site? This seems odd since I am using visual studio 2008 and the .net 3.5 framework.

like image 933
cc0 Avatar asked Mar 01 '10 19:03

cc0


People also ask

What is the difference between ASP.NET and .NET Framework?

The main difference between . NET and ASP.NET is that . NET is a software framework that allows developing, running and executing applications while ASP.NET is a web framework which is a part of . NET that allows building dynamic web applications.

Is ASP.NET and .NET the same?

ASP.NET is a framework that has the same functionality as . NET, only it's adapted to writing backend for web pages and web apps. Developers can use the same tools, libraries, and infrastructure to build web and desktop projects.

Is ASP.NET A .NET Framework?

ASP.NET is an open source web framework, created by Microsoft, for building modern web apps and services with . NET. ASP.NET is cross platform and runs on Linux, Windows, macOS, and Docker.

Is ASP.NET the same as .NET 5?

It's worth noting that, as of 2020, ASP.NET Core 5.0 is now used to describe the latest version of ASP.NET / ASP.NET Core, and corresponds to the release of . NET 5.0.


2 Answers

No, the .NET Framework 3.5 version is simply a set of extra assemblies that are referenced in addition to the core .NET 2.0 assemblies, so calling System.Environment.Version.ToString() will always return 2.0.50727.4927 for all versions from .NET 2.0 up to .NET 3.5.

You're running .NET 3.5 if you're referencing .NET 3.5 assemblies.

like image 140
David Morton Avatar answered Sep 20 '22 01:09

David Morton


You're getting the CLR version...not the Framework version.

Gets a Version object that describes the major, minor, build, and revision numbers of the common language runtime.

Framework 3.5 still runs on the 2.x version of the CLR.

like image 40
Justin Niessner Avatar answered Sep 22 '22 01:09

Justin Niessner