-
Notifications
You must be signed in to change notification settings - Fork 334
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
WinAppSDK v1.1.0 throws System.AccessViolationException on Unpackaged WinUI 3 apps #2578
Comments
By the way, the Issue: Bug report form has no 1.1.0 option in the NuGet package version list. |
I had the same problem, uninstalling preview WinAppSdk fixed it for me: microsoft/PowerToys#18603 (comment) or setting WindowsAppSDKSelfContained to true. |
I haven't installed any WinAppSDK preview packages, but at least setting |
Uninstalled everything related to Windows App SDK using PowerShell, then installed 1.1 from website with the latest installer. NuGet Package 1.1.0 works fine.
Downgrading Microsoft.WindowsAppSDK NuGet Package to 1.1.0 solved the problem. Windows 11 21H2 |
Just confirmed this is fixed in 1.1.2 shipping soon. |
@mikebattista Thank you!😎 |
Describe the bug
Unpackaged WinUI 3 apps throw
System.AccessViolationException
at the very start you run the app.Steps to reproduce the bug
<WindowsPackageType>None</WindowsPackageType>
to the csproj file.Expected behavior
Runs without exceptions or errors.
Screenshots
NuGet package version
No response
Packaging type
Unpackaged
Windows version
Windows 11 version 21H2 (22000)
IDE
Visual Studio 2022
Additional context
No response
The text was updated successfully, but these errors were encountered: