Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine version of .NET installed on the server?
Message
General information
Forum:
ASP.NET
Category:
Deployments
Miscellaneous
Thread ID:
01664911
Message ID:
01664920
Views:
50
There is no simple way to do this really because .NET updates are in place updates that replace older versions. This means that the version numbers are always the same except for the build and release numbers. The registry is the proper place to check and then explicitly look up what the release matches in terms of `simple` version number.

You can do this with Powershell to get the release build:

Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full" -Name Release

Then look up the simple version number here:

https://docs.microsoft.com/en-us/dotnet/framework/migration-guide/how-to-determine-which-versions-are-installed


If you have wwDotnetBridge you can do:
DO wwDotnetBridge
loBridge = GetwwDotnetBridge()
? loBridge.GetDotnetVersion()
This prints out all version info for wwDotnetBridge, .NET and Windows:
wwDotnetBridge Version   : 6.22.0.0
wwDotnetBridge Location  : C:\WEBCONNECTIONPROJECTS\WWTHREADS\DEPLOY\WWDOTNETBRIDGE.dll
.NET Version (official)  : 4.0.30319.42000
.NET Version (simplified): 4.7.2
Windows Version          : 6.2.9200.0 - Release: 1809
+++ Rick ---

>Hi,
>
>Does anybody know of a simple method to determine the version of .NET installed? The only thing I find by Googling is how to determine the version by viewing the registry. I was hoping there is a simpler approach.
>
>TIA
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform