I just downloaded Visual Studio 2022 (Although I much preferred 2019 but can't find it) and as soon as I open a simple "Hello World" project and try to run it, I have an error.
Using .Net 5.0 Runtime
How can I fix this? is this a 2022 issue or if I miraculously find Visual Studio 2019 somewhere online it'll show the same error?
UPDATE: 2019 works fine, it's just 2022. I'll work on 2019 but if anyone has a solution maybe it'll help other people :)
More googling, and the fix for me turned out to be VS-Installer borking the install;
"Development tools for .NET" - was never installed.. Because I deselected F# language support.
My solution found via https://developercommunity.visualstudio.com/t/vs-2022-preview-2-the-project-doesnt-know-how-to-r/1491655
I fixed it! Here's what I did
Let me know if it worked :)
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