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

Update-BTNotification hitting WinRT errors on PowerShell 7.1 #120

Closed
Windos opened this issue Sep 29, 2020 · 0 comments
Closed

Update-BTNotification hitting WinRT errors on PowerShell 7.1 #120

Windos opened this issue Sep 29, 2020 · 0 comments
Assignees
Labels

Comments

@Windos
Copy link
Owner

Windos commented Sep 29, 2020

Steps to reproduce

$Id = 'DemoUpdate'

$DataBinding = @{
    HeadingPlaceholder = 'Demo Update'
    TextPlaceholder    = 'This is the first example line of text'
}

New-BurntToastNotification -Text 'HeadingPlaceholder', 'TextPlaceholder' -UniqueIdentifier $Id -DataBinding $DataBinding


$DataBinding['TextPlaceholder'] = 'This is the second example line of text'
Update-BTNotification -UniqueIdentifier $Id -DataBinding $DataBinding


$DataBinding['TextPlaceholder'] = 'This is the third example line of text'
Update-BTNotification -UniqueIdentifier $Id -DataBinding $DataBinding

Expected behavior

Toast notification is updated twice after initial display and generates no errors.

Actual behavior

The notification is updated, but outputs errors.

image

Environment data

Name                           Value
----                           -----
PSVersion                      7.1.0-preview.7
PSEdition                      Core
GitCommitId                    7.1.0-preview.7
OS                             Microsoft Windows 10.0.19041
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}       
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0
OsName         : Microsoft Windows 10 Pro for Workstations
OsVersion      : 10.0.19041
OsArchitecture : 64-bit
    Directory: C:\Program Files\WindowsPowerShell\Modules

ModuleType Version    PreRelease Name                                PSEdition ExportedCommands
---------- -------    ---------- ----                                --------- ----------------
Script     0.8.2                 BurntToast                          Desk      {Get-BTHistory, New-BTAction, New-BTAppId, New-BTAudio…}
Script     0.7.2                 BurntToast                          Desk      {Get-BTHistory, New-BTAction, New-BTAppId, New-BTAudio…}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant