Skip to content

.NET Core 3.0 support for desktop toasts #3256

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

Merged
merged 11 commits into from
May 12, 2020

Conversation

andrewleader
Copy link
Contributor

@andrewleader andrewleader commented Apr 27, 2020

Fixes #3212

The DesktopNotificationManagerCompat library didn't work with .NET Core 3.0 apps due to the lack of some APIs, figured out a workaround thanks to the community help of FrecherxDachs.

PR Type

What kind of change does this PR introduce?

Bugfix

What is the current behavior?

Toast library didn't work for .NET Core 3.0 WPF apps

What is the new behavior?

Toast library now works for .NET Core 3.0 WPF apps

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tested code with current supported SDKs
  • Pull Request has been submitted to the documentation repository instructions. Link:
  • Sample in sample app has been added / updated (for bug fixes / features)
  • Tests for the changes have been added (for bug fixes / features) (if applicable)
  • Header has been added to all new source files (run build/UpdateHeaders.bat)
  • If new feature, add to Feature List
  • Contains NO breaking changes

Other information

@ghost
Copy link

ghost commented Apr 27, 2020

Thanks andrewleader for opening a Pull Request! The reviewers will test the PR and highlight if there is any conflict or changes required. If the PR is approved we will proceed to merge the pull request 🙌

@ghost ghost assigned azchohfi Apr 27, 2020
@michael-hawker
Copy link
Member

Thanks @andrewleader, I've got a thread open with our legal advisors about making sure we've done the credit right, so just adding the do not merge tag until I can circle back.

In the meantime, I think @sibille you've already validated this solution should work?

@michael-hawker michael-hawker added this to the 6.1 milestone Apr 27, 2020
@andrewleader
Copy link
Contributor Author

👍 I've also got to validate with the NuGet packages from the build server, I'll post when I've validated everything

@Felix-Dev
Copy link

Tested this solution and happy to report that it works.

Tested with a .NET Core 3.1 MSIX packaged desktop app with toast input (selection menu). App activation and app launching both worked.

Good job @andrewleader @FrecherxDachs 👍

@andrewleader
Copy link
Contributor Author

andrewleader commented Apr 28, 2020

NuGet packages don't seem to work, the DesktopNotificationManager code probably isn't getting included in the NuGet package, none of the classes from that class are appearing. So I'm still investigating that.

image

@MichaeIDietrich
Copy link

Nice to see the code makes it into the toolkit. 👍🏻

Copy link
Member

@michael-hawker michael-hawker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have Legal feedback, minor things, let me know your thoughts too from how you've done this in the past.

@ghost
Copy link

ghost commented May 6, 2020

This PR has been marked as "needs attention 👋" and awaiting a response from the team.

@michael-hawker
Copy link
Member

@andrewleader thanks for the updates, but couple of StyleCop nitpicks stopping the CI build:

DesktopNotificationManager\DesktopNotificationManagerCompat.cs(80,1): error SA1507: Code should not contain multiple blank lines in a row [D:\a\1\s\Microsoft.Toolkit.Uwp.Notifications\Microsoft.Toolkit.Uwp.Notifications.csproj]
DesktopNotificationManager\DesktopNotificationManagerCompat.cs(81,1): error SA1028: Code should not contain trailing whitespace [D:\a\1\s\Microsoft.Toolkit.Uwp.Notifications\Microsoft.Toolkit.Uwp.Notifications.csproj]

@ghost ghost removed the needs attention 👋 label May 7, 2020
@michael-hawker
Copy link
Member

@sibille I know you've tested the sample code earlier, but would you have a chance to validate these bits as integrated into the toolkit against your scenario?

@sibille
Copy link

sibille commented May 8, 2020

@mvegaca just tested it, looks good to us!

@michael-hawker michael-hawker merged commit a9b2a61 into master May 12, 2020
@delete-merged-branch delete-merged-branch bot deleted the aleader/net-core-30-desktop-toasts branch May 12, 2020 16:22
@Kyaa-dost Kyaa-dost added bug 🐛 An unexpected issue that highlights incorrect behavior and removed reviewers wanted ✋ labels Jun 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 An unexpected issue that highlights incorrect behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ToastNotifications for WPF (.NET Core 3)
7 participants