I am expected to continue development on a C#/ASP.NET project that has changed hands multiple times, and no one person is sure which version of .NET is being used.
Is there something (perhaps an option in Project properties or elsewhere) that tells me which version of .NET the project uses?
EDIT :
The project's hosted on a remote server (an ancient one!) which runs on Windows Server 2003, and uses Visual Studio 2005. I checked the Web.config file, and under <system.web>
, I found <compilation debug="true">
but no entry for targetFramework
!
Does the existence of this entry depend on the .NET version too? Is this 2.x or older?
Open Visual Studio Developer Command Prompt or Visual Studio Developer PowerShell and enter clrver . For .NET Framework 4.5 and later versions, don't use the Environment.Version property to detect the version of the CLR. Instead, query the registry as described in Detect .NET Framework 4.5 and later versions.
Checking the Version of Your . Open your project's source folder and, in the address bar, type "cmd" and press Enter. It will open the command prompt with the project path. Execute the following command: dotnet --version . It will display your project's current SDK version,i.e., 2.1.
NET Framework 4.8. To determine the installed . NET version, use the following Release DWORD: 528449 (Windows 11 and Windows Server 2022)
The tag in the project file is <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
.
Alternatively under project properties:
If it is a web application, you can find it under Web.config: <compilation targetFramework="4.0">
Check Your Web Config file.
In webconfig under <system.web>
<httpRuntime targetFramework="4.5" />
<compilation debug="false" targetFramework="4.5" />
this targetFramework is version
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