Persistant error message in Visual Studio

Brian Rawlings 45 Reputation points
2023-06-12T00:26:58.5733333+00:00

I Keep getting this error. I have tried reinstalling.

DEP0840: Project 'XXXXX' `requires packages 'MicrosoftCorporationII.WinAppRuntime.Main.1.2_8wekyb3d8bbwe' and 'MicrosoftCorporationII.WinAppRuntime.Singleton_8wekyb3d8bbwe' with version >= '2000.777.2143.0'. These packages should be installed on first run, if not please visit http://go.microsoft.com/fwlink/?linkid=2222757 for installation instructions.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,147 questions
0 comments No comments
{count} votes

Accepted answer
  1. Anna Xiu-MSFT 29,096 Reputation points Microsoft Vendor
    2023-06-12T07:34:08.7533333+00:00

    Hi @Brian Rawlings

    Welcome to Microsoft Q&A! 

    Which version of Visual Studio are you using? Could you tell me how you got this error message? What is your project type? 

    Please update your VS to the latest version and create a new project to verify if it persists. 

    You can try to clean and rebuild your solution. 

    Sincerely,

    Anna


    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.

     


2 additional answers

Sort by: Most helpful
  1. 申鹏飞 0 Reputation points
    2023-10-05T06:35:26.2766667+00:00

    I'm using the current latest stable version of Visual Studio 17.7.4, and have faced with a familiar problem of warning lines:

    DEP0840: Project 'XXX' requires packages 'MicrosoftCorporationII.WinAppRuntime.Main.1.3_8wekyb3d8bbwe' and 'MicrosoftCorporationII.WinAppRuntime.Singleton_8wekyb3 ...
    
    These packages should be installed on first run, if not please visit 
    

    TO HANDLE IT, visit the (http://go.microsoft.com/fwlink/?linkid=2222757) between lines, download the appropriate version of Windows App Runtime Installer on your PC and run it.

    Then, in Build of your VS toolbar, click Clean Solution, and make sure to click Rebuild Solution TWICE. This is because with once clicking, the VS won't instantly response to the project changes.


  2. César Costa 0 Reputation points
    2024-10-21T23:36:09.6733333+00:00

    After reinstalling and updating several times "Windows App SDK", nothing worked...
    The only thing that worked for me was going to Nuget Package Manager and update all packages in the tab "Updates". (Example: Microsoft.Maui.Controls, etc....)

    It worked!!!

    Good luck!
    Thank you.

    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.