-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After updating Windows 10, Windows can no longer manage any appx packages, and I can't deploy WinUI 3 apps from VS #25832
Comments
I am experiencing the same problem with the official .NET 9 release - yet the application worked fine on the .NET 9 RC2 release (which I thought was the point of testing with the RC releases ie. to identify any potential issues). Running the application results in: However the Configuration is already set to Deploy: Build / Deploy Solution results in: |
@Transis-Felipe I was able to resolve my problem by modifying PropertyGroup in my *.csproj removing:
adding :
and modifying launchSettings.json to:
I then did a Solution Clean and Solution Rebuild. (I identified these changes after reviewing a new .NET MAUI project that I created in .NET 9) |
Thank you - this seemed to do the trick for me also. However, I still have the version of the app installed before this problem occurred and i cannot remove the package (Powershell: Remove-AppXPackage) or uninstall the app. I tried my project on another "clean" development computer and all is well without your changes, so this points to the "jammed package" being the problem. |
This is happening to us as well. It appears to only be a problem for Windows 10 as far as I can tell, and most likely comes from the latest Windows update as we did not update our Visual Studio Version but it still doesn't allow us to uninstall those packages. |
Can confirm @ehoward0018 message. All our devs with win10 22H2 machines faced with this issue. No problems for devs with win11 23H2 and above. Important note: we did not update our app to .NET9. Potential workaround might be to run System File Checker tool from CMD: sfc /scannow, then restart your machine and debugging will be fixed. |
Same issue. 22H2 and 19060.1000.0. |
I can confirm I am running Windows 10 as well |
@Xo3-ToBapbl |
I did manage to upgrade my project to .net 9. It worked for a while and then got stucked with DEP0900. I cant even uninstall the old maui programs that i still have in my PC using windows remove program feature. I have win 10. |
Same problem here, when i apply this changes i got this error: |
I'm also seeing the same issue for both .NET 8 and .NET 9 on Windows 10. Below is some of my troubleshooting. When attempting to uninstall through settings, we get the following error: When attempting to debug, we get the same error with more details:
Trying to uninstall with AppX powershell module results in the same error:
With the Activity log output returning nothing:
But the event viewer is showing a crash:
The suggested changes from @sbwalker result in the following error when building, though this may be due to legacy settings and other project configurations.
Running
I'm doing some testing with Windows 11, but any other information to fix this on Windows 10 would be extremely helpful. |
I am on Win 10 also and have had the same experience as all of you. I would say Microsoft owes us a fix as MAUI should work on WIN 10. Do we have to report it directly to them? |
Same issue since yesterday. Made me a little mad. On Windows 10 too. So I suspected I broke something by switching on and off from android to windows platform, finally end up saw that it was related with the Microsoft app store, and also removing application from settings failed too, and also with powershell as admin. Trying toubleshooter wizard from Settings for app store. I also decided to uninstall completely Visual Studio, reinstall it, creating a new default MAUI project. I finally tried to edit Package.appxmanifest in Visual Studio : Changing the package Name as I saw on internet maybe the error is related to the name of the package and / or it version detected to be a downgrade (so I increased the version number). I even tryied with a creating a testing certificate (.pfx). But none worked out. |
Just to further confirm it is a win10 related issue. I was lucky to be in my win11 enrollment process, and after upgrading last night I can now build again. |
"Just to further confirm it is a win10 related issue. I was lucky to be in my win11 enrollment process, and after upgrading last night I can now build again." Hi Tobias, |
Hi Henrik, |
We have a similar problem when deploying our apps to W10 clients. As a workaround we are doing tests by adding a {
"sdk": {
"version": "8.0.306"
}
} Currently we are assuming that the bug in regard to W10 seems introduced on the 12th of November in the latest .NET 8.0 release (8.0.11) with in our case SDK 8.0.307. The EDIT: |
Thanks for your investigation! I want to clarify: are you sure that your clients with freshly installed win10 have latest updates (KB5046613)? We have no issues with users on win10 without latest updates. |
I can confirm that KB5046613 is installed via Windows Update earlier this week (12th November). Our clients are running a up-to-date Windows 10 IoT Enterprise LTSC 2021 (21H2) for what it's worth. |
We encounter a similar issue when trying to update or remove our application, regardless of whether we use the Building with SDK version Error log excerpt:
|
Same issue for us using .NET 8 and Windows 10. Removing the latest Windows updates has been a temporary fix for us. |
I had this issue with .NET 8 and Windows 10 22H2 19060.1000.0. Upgrading to Windows 11 was unfortunately the only thing that worked. No code/config changes. |
We are actively chasing this down. |
Fix frustrating bug with visual studio in Windows 10 after update
and modifying launchSettings.json to: { Worked for me after reinstalling Visual Studio. Another thing I did was clone my git before for each project. After which I was able to run windows, and create Android and iOS apps with ease. I can use NET 8 which suites me fine. |
As with @skyclasher, changing the SDK version to anything older than With my troubleshooting from yesterday, I was on the following version, which did not include
After updating to build 19045.5131 (with Thank you @davidortinau for linking the WindowsAppSDK issue! |
Can also confirm that updating to Win11 fixes issue |
Workaround posted here microsoft/WindowsAppSDK#4881 (comment) One thing to clarify here is that .NET 9 MAUI does depend on a 1.6.2 version of WinAppSDK but the version of WinAppSDK we are using for .NET9 depends on the 1.6.1 runtime which doesn't have this issue. Once the 1.6.3 version of the WinAppSDK is released, updating to that will not fix anything. |
I can confirm that that workaround https://github.com/microsoft/WindowsAppSDK/issues/4881#issuecomment-2480939942 worked for me in Windows 10. |
Should we be using the workaround right now, or fix is coming soon enough that it is better to wait for it ? |
I'm also having the same issue. |
I upgraded to win11 and that allowed me to unregister older apps and continue coding. However, I'm now unable to deploy new Maui projects. The Deploy checkbox in VS configuration manager is grayed out. Can anyone duplicate this? I simply used either of the default maui demos (button clicker and task manager). I don't think I missed any settings anywhere, but am unsure. I tried running VS as administrator, no change. |
Adding the issue to the "backlog" simply because the system demands that I put it somewhere. We are most likely not able to action on this and will have to wait for a fix to roll out to the OS/update/Store. |
Don’t use Regedit could cause some problems with the system use
First upgrade Visual Studio then
Add this to the .csproj of the project
<WindowsPackageType>None</WindowsPackageType>
In the
and modifying launchSettings.json to:
{
"profiles": {
"Windows Machine": {
"commandName": "Project",
"nativeDebugging": false
}
}
}
Works like a charm for all projects where I can run Windows and compile in Android and iOS with ease.
From: BennKjaer62 ***@***.***>
Sent: Monday, November 18, 2024 3:18 AM
To: dotnet/maui ***@***.***>
Cc: SubdudedCrane651 ***@***.***>; Comment ***@***.***>
Subject: Re: [dotnet/maui] After updating Windows 10, Windows can no longer manage any appx packages, and I can't deploy WinUI 3 apps from VS (Issue #25832)
I'm also having the same issue.
I have tried to delete the key directly in Regedit, but this also return an error - Unable to delete.
—
Reply to this email directly, view it on GitHub <#25832 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AWWWYTNJBZYMD3HC7XKOJBT2BGPDHAVCNFSM6AAAAABRWUM3U2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOBSGIZTOMZWG4> .
You are receiving this because you commented. <https://github.com/notifications/beacon/AWWWYTNIMWXCSCZQMB7D7ZD2BGPDHA5CNFSM6AAAAABRWUM3U2WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUT6PX3O.gif> Message ID: < ***@***.***> ***@***.***>
|
Compiling in Android and iOS was never the issue though, it wasn't an issue for me anyway. |
I am also facing the same problem, It works. Thanks |
Facing the same issue with my machine with Windows 22H2 /Win 10. I think the latest update is the root cause of this problem. All I can say is "what a goddamn problem is this" .lmao |
Having the same issue with windows 10 and Maui as everyone else here. Tried manually removing files, manually removing registry keys related to it. soooo many things. and still nothing. pleae if anyone know how to fix this, I would really appreciate it. |
I can Confirm that the following link work perfectly for me microsoft/WindowsAppSDK#4881 (comment) then reboot and BONUS !!!!, I was able to deploy again |
@GeoSaffer Thanks, it worked for me too. |
This did not work for me
|
While I understand that the post at the top is stating that this is not a .net Maui issue, and clearly it WAS a WinUI issue, if That lack of instability made us instantly move to other options than MSIX as Windows apps completely ceased to function for almost a week. |
In principle, MSIX has certain benefits. The only work-around I could find was to create the maui app using net8 and manually upgrade to net9 in the project file. Doing that, the deploy option was no longer grayed out in VS configuration manager and everything apparently works, at least locally anyway. I have not tried store deployment though and that may not work at all. What a mess! |
I had the same issue, tried updating VS, doing all things suggested here and other places, somehow change that I could uninstall the apps without error, but then I couldn't launch MAUI app from VS. Finally downloading WinAppSDK and installing helped: |
.NET MAUI Team notes
This issue isn't related to .NET MAUI or .NET9.
You can follow the WinUI issue here
Workaround posted here
microsoft/WindowsAppSDK#4881 (comment)
One thing to clarify here is that .NET 9 MAUI does depend on a 1.6.2 version of WinAppSDK but the version of WinAppSDK we are using for .NET9 depends on the 1.6.1 runtime which doesn't have this issue. Once the 1.6.3 version of the WinAppSDK is released, updating to that will not fix anything.
Original Description
Can't deploy MAUI projects to windows after upgrade to .net 9
DEP0900: Failed to unregister application "0acbd622-c89e-4564-8e05-7fcba762c402_1.0.0.64_x64__9zz4h110yvjzm". [0x80073CFA]
Steps to Reproduce
Create a project
Build the project
Deploy to Windows Machine (Windows 10 in my case)
Error
Powershell can't also remove the windows store app
Link to public reproduction project repository
No response
Version with bug
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
Affected platforms
Windows
Affected platform versions
No response
Did you find any workaround?
microsoft/WindowsAppSDK#4881 (comment)
Relevant log output
Depends on
The text was updated successfully, but these errors were encountered: