Windows version / .NET Framework

Markus Freitag 3,786 Reputation points
2023-03-31T16:55:35.1166667+00:00

Hello,

I want to know which Windows version is installed and which .NET Framework version.
How and with which function can I read it?
My system Win10, VS2019.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,368 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,231 questions
0 comments No comments
{count} votes

Accepted answer
  1. YujianYao-MSFT 4,271 Reputation points Microsoft Vendor
    2023-04-03T07:50:59.3966667+00:00

    Hi Markus Freitag,

    Regarding how to install .net framework on Win10, I recommend you refer to this document.

    Since you have already installed VS2019, you could also install it in visual studio installers:

    User's image

    User's image

    So, you could use VS to create a .net framework project.

    User's image

    Best regards,

    Elya


    If the answer is the right solution, please click "Accept Answer" and upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


1 additional answer

Sort by: Most helpful
  1. Jaliya Udagedara 2,731 Reputation points MVP
    2023-03-31T17:27:56.9533333+00:00

    To know which version of .NET Framework is installed in your OS, read this: .NET Framework versions and dependencies

    If you want to read it programmatically, you will have to read the Registry Key (HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full) as mentioned here:
    How to: Determine which .NET Framework versions are installed

    To determine which .NET implementation and version an app is running on, use RuntimeInformation.FrameworkDescription property.