Install NET 5.X

Bryan Kelly 486 Reputation points
2021-04-25T17:33:21.743+00:00

Windows 10, Visual Studio 2017, C++
Bare Question
How do I get .NET 5.0 installed? Or maybe, how to get VS 2017 to recognize it.

Background:
I think VS 2017 is not installed correctly in that it does not have an option to build an MFC project. Well, I cannot find it and have not received a reply to a question on that.

To re-install I will need the product key. To get that, a search and a hit from Stackoverflow told me where to find the key, but it is encrypted. A link was provided for an app to decrypt the key. I downloaded the app from github to decrypt the key. It will not compile with error message that it requires NET 5.0.

That was installed and the same error message was presented. Rebooted computer. Same message. The message is, in part:

The reference assemblies for framework ".NETFramework,Version=v5.0" were not found.

Went back to the .NET exe file and did the repair operation. (To verify that it is installed) An image of the result is provided.![90908-dot-net-5-installed.png][1] Note: The option for add an image did not work but was able to add an attachment. It is just an image of the dialog showing Microsoft .NET SDK 5.0.202 was successfully repaired.

Please advise as to a next step to try.

edit: Side problem:
When visiting the product key web site, here:
https://my.visualstudio.com/productkeys?wt.mc_id=o%7Emsft%7Edocs
It states I don’t have product keys. I think this is because of using a different email address to purchase and install Windows and Visual Studio. That email was associated with a personal web site. It was a dot ws web site. I changed host providers and had to change my site from a dot ws to domain to a dot net domain. That means I no longer have access to the original email. I don’t know how to backdate my new MSDN account with the stuff from back then.

Developer technologies | C++
Developer technologies | Visual Studio | Other
0 comments No comments
{count} votes

Accepted answer
  1. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2021-04-26T09:46:32.443+00:00

    Hi @Bryan Kelly ,

    Welcome to Microsoft Q&A!

    For .NET 5.0, it is supported in Visual Studio 2019 16.8 or later. I suggest you install Visual Studio 2019 to use it.

    Besides, about product keys problems, please directly contact Subscription Support to get help: https://visualstudio.microsoft.com/subscriptions/support/.

    Sincerely,
    Anna

    • If the answer is helpful, please click "Accept Answer" and upvote it.
      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.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Ken Tucker 5,861 Reputation points
    2021-04-26T09:14:03.957+00:00

    You can download .net 5 from here. As for developing .net 5 apps you will need to upgrade to Visual Studio 2019

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.