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

Connor Frayne 25 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

 

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,917 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,191 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,735 questions
Visual Studio Extensions
Visual Studio Extensions
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Extensions: A program or program module that adds functionality to or extends the effectiveness of a program.
227 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 31,246 Reputation points Microsoft Vendor
    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.


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.