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.
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.
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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With