Can't launch my app because of 'you must install .NET Desktop Runtime' popup

Connor Frayne 35 Reputation points
2024-06-12T15:25:22.23+00:00

Hi everyone,

I'm trying to run my application I've just installed on my computer but I'm having an issue with my .NET Runtime. I've been debugging this application in Visual Studio Community 2022 v17.10.2 and it works fine when I start it through Visual Studio but when I create an installer, install and run the application I get this popup.

User's image

I've attempted installs from both inno setup and Visual Studio Installer projects and neither work. I'm 1000% sure I have .net 8.0.6 Desktop Runtime x64. The Download link doesn't lead anywhere and the Download it now button just closes the popup(nothing is downloaded). Any ideas?

Thank you,

Connor Frayne

 

Developer technologies | Visual Studio | Extensions
Developer technologies | .NET | Other
Developer technologies | VB
Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other

A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.

Locked Question. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

Answer recommended by moderator
Tianyu Sun-MSFT 34,841 Reputation points Microsoft External Staff
2024-06-13T03:19:46.4833333+00:00

Hello @Connor Frayne,

Welcome to Microsoft Q&A forum.

I think the error message is clear enough, the .NET Desktop Runtime is missing.

I notice that you are 1000% sure that you have .NET 8.0.6 Desktop Runtime x64. I don’t doubt that, but maybe you can also try to install version 8.0.5. You can download here: .NET Desktop Runtime 8.0.5.

User's image

Here’s what happens when I try to add a .NET Runtime installer as a perquisite for my VS Installer Project.

Try to download ".NET Desktop Runtime 8.0.5 x64" file and put it under this directory: C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VisualStudio\BootstrapperPackages\net8desktopruntime_x64, rebuild your project, see if this error disappears.

Sincerely,

Tianyu


If the answer is the right solution, please click "Accept Answer" and kindly 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.

Was this answer helpful?

8 people found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Doug (LWD) 0 Reputation points
    2026-11-18T12:57:51.17+00:00

    (Nov. 2026) Instead of clicking to install the .NET desktop runtime, I just installed the latest AWS client, the newest client didn't have this problem. (I installed the AWS client via Company Portal but any install of the newest AWS client should suffice)

    Was this answer helpful?

    0 comments No comments