You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The article specifically talks about testing the version; the PowerShell provided in the article does test a version. However, you happen to point out that the PowerShell code could be simplified for PS5.0. I'll file a fix for this.
I do believe though that you're referencing the Version property of the registry key. That is reliable for Framework versions prior to 4.5, but starting with 4.5 it's not reliable and the Release property is the suggested most reliable way to detect version.
Activity
Thraka commentedon Oct 3, 2019
Hello.
The article specifically talks about testing the version; the PowerShell provided in the article does test a version. However, you happen to point out that the PowerShell code could be simplified for PS5.0. I'll file a fix for this.
I do believe though that you're referencing the
Versionproperty of the registry key. That is reliable for Framework versions prior to 4.5, but starting with 4.5 it's not reliable and theReleaseproperty is the suggested most reliable way to detect version.