.Net Maui Deployment error

iancarr1412 1 Reputation point
2022-07-15T12:09:27.983+00:00

Net Maui looks great. Everything in VS works but when trying to build for Windows I cannot get past this error:

DEP0800: The required framework ".nuget\packages\microsoft.windowsappsdk\1.1.1\buildTransitive..\tools\MSIX\win10-x64\Microsoft.WindowsAppRuntime.1.1.msix" failed to install. [0x80073CFE] error -2018574325: Windows cannot process a deployment operation because the package repository database encountered an unrecoverable error. Use the Reset Your PC feature to recover your PC". I am using VS 17.3.0 Preview 3.0.

Any ideas please?

Windows development Windows App SDK
Developer technologies .NET .NET MAUI
{count} votes

1 answer

Sort by: Most helpful
  1. dg2k 1,416 Reputation points
    2022-07-18T08:38:07.357+00:00

    This is not a specific answer to your question but here is what worked for me for most of the time.

    • Ensure NuGet packages are updated for the project (noting that there are subtle cases of workarounds where the latest packages may not work with Maui, but there are exceptions).
    • Delete the obj and bin folders in your project folder. You may need to exit Visual Studio as files in the bin folder may be locked and won't allow deleting the folder.
    • In the project folder, launch the Cmd Prompt with elevated privilege (as Administrator).
    • Run the command dotnet restore --no-cache

    Now go to Visual Studio and rebuild your project. Hope it compiles this time. This is my starting point when compilations fail. Good luck.


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.