Windowscommunitytoolkit: ToastContent is missing GetXml method

Created on 6 Jun 2018  路  3Comments  路  Source: windows-toolkit/WindowsCommunityToolkit

I'm submitting a regression (a behavior that used to work and stopped working in a new release)

Using Windows Forms project with TargetPlatformVersion set to 10.0.10240.0

Current behavior

ToastContent does no longer have GetXml method.
Actual error:
ToastContent does not contain definition for GetXml and no extension method GetXml accepting the first argument of type ToastContent

Expected behavior

ToastContent should have GetXml method.

Environment

Nuget Package(s): 
Microsoft.Toolkit.Uwp.Notifications 3.0.0
QueryString.NET 1.0.0

Windows 10 Build Number:
- [ ] April Redstone Update (17134.48)

Device form factor:
- [ ] Desktop

Visual Studio 
- [ ] 2017 (version: 15.7.3)

Most helpful comment

GetXml() only works in UWP apps. You can use GetContent() to get the raw xml content as string outside of UWP

/cc @anbare

All 3 comments

GetXml() only works in UWP apps. You can use GetContent() to get the raw xml content as string outside of UWP

/cc @anbare

@NaveNO Works the solution for you? Can we close it?

Oh yes, thanks a lot! :)

Was this page helpful?
0 / 5 - 0 ratings