Skip to content
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

Magick.NET.SystemWindowsMedia causing XAML errors #1518

Open
HEIC-to-JPEG-Dev opened this issue Jan 12, 2024 · 4 comments
Open

Magick.NET.SystemWindowsMedia causing XAML errors #1518

HEIC-to-JPEG-Dev opened this issue Jan 12, 2024 · 4 comments

Comments

@HEIC-to-JPEG-Dev
Copy link

Magick.NET version

SystemWindowsMedia 7.2.1

Environment (Operating system, version and so on)

Windows 11 x64

Description

When the nuget package is added to a project (WinUI Desktop .Net 8), it causes the XAML Hot Reload to start failing when edits are made to the xaml while the app is running.

Steps to Reproduce

Create a New blank WinUI 3.0 Desktop app, upgrade it to .net 8.
Run app, make any change the xaml and it works
Add the SystemWindowsMedia nuget package, run the app
Make a change (even just a space) to the XAML and there are now xaml errors.
Remove the nuget package and it all works again

@dlemstra
Copy link
Owner

This sounds like a problem with XAML Hot Reload. Can you create a sample project that demonstrates this issue?

@HEIC-to-JPEG-Dev
Copy link
Author

I think the problem is because the package is aimed at UWP not WinUI

@dlemstra
Copy link
Owner

That could be the issue. I don't think this library works with UWP.

@HEIC-to-JPEG-Dev
Copy link
Author

The other way round. The library works with UWP, not WinUI - WinUI changed some of the areas like bitmaps, which the library doesn't provide (it returns UWP bitmaps) - I generally had to convert them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants