Skip to content

[BUG] Application crashes under Windows when running in desktop mode #1649

@pgrawehr

Description

@pgrawehr

Is there an existing issue for this?

  • I have searched the existing issues

Did you read the "Reporting a bug" section on Contributing file?

Current Behavior

Open the CommunityToolkit.Samples solution and add this line to the csproj to run in Windows desktop mode (not in store mode):

<WindowsPackageType Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">None</WindowsPackageType>

also change the commandName in launchsettings.json to "Project". Then run the project and try out the "Snackbar" and "ToastBar" examples.

The application crashes with some low-level error.

Expected Behavior

A notification window is shown

Steps To Reproduce

See above

Link to public reproduction project repository

https://github.com/CommunityToolkit/Maui/

Environment

- .NET MAUI CommunityToolkit: Latest
- OS: Windows 10
- .NET MAUI: 8.0

Anything else?

When running as store app, everything works as expected.

Metadata

Metadata

Labels

area/coreIssue/Discussion/PR that has to do with the core of the toolkitbugSomething isn't workingunverified

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions