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

Typo in Example05? #189

Open
1 task done
mrpostmantome opened this issue Jan 23, 2022 · 1 comment
Open
1 task done

Typo in Example05? #189

mrpostmantome opened this issue Jan 23, 2022 · 1 comment
Assignees

Comments

@mrpostmantome
Copy link

Steps to Reproduce

Possible typo
https://github.com/Windos/BurntToast/blob/main/Examples/Example05/New-ToastReminder.ps1
Line 94: $AppLogo = $AppLogo
Should be: AppLogo = $AppLogo

Expected Behavior

No error

Actual Behavior

Cannot convert value "System.Collections.Specialized.OrderedDictionary" to type
"System.Management.Automation.LanguagePrimitives+InternalPSCustomObject". Error: "Cannot process argument because the value
of argument "name" is not valid. Change the value of the "name" argument and run the operation again."
At C:\Users\owner\Desktop\burnttoast\New-ToastReminder.ps1:91 char:9

  •     $Data = [pscustomobject]@{
    
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidArgument: (:) [], RuntimeException
    • FullyQualifiedErrorId : InvalidCastConstructorException

Experience with Toast

Beginner

Environment data: PowerShell

Replace with the output of: $PSVersionTable
Name                           Value                                                                                        
----                           -----                                                                                        
PSVersion                      5.1.19041.1320                                                                               
PSEdition                      Desktop                                                                                      
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                      
BuildVersion                   10.0.19041.1320                                                                              
CLRVersion                     4.0.30319.42000                                                                              
WSManStackVersion              3.0                                                                                          
PSRemotingProtocolVersion      2.3                                                                                          
SerializationVersion           1.1.0.1

Environment data: OS

Replace with the output of: Get-ComputerInfo | fl OsName, OsVersion, OsArchitecture
OsName         : Microsoft Windows 10 Pro
OsVersion      : 10.0.19043
OsArchitecture : 64-bit

Environment data: BurntToast

Replace with the output of: Get-Module -Name BurntToast -ListAvailable
ModuleType Version    Name                                ExportedCommands                                                  
---------- -------    ----                                ----------------                                                  
Script     0.8.5      BurntToast                          {Get-BTHistory, New-BTAction, New-BTAppId, New-BTAudio...}

Consent to Attribution

  • Please shout me out if I've inspired a blog post!
@mrpostmantome mrpostmantome changed the title [Bug]: Typo in Example05? Jan 23, 2022
@Windos
Copy link
Owner

Windos commented Mar 19, 2022

Good spotting, thanks @mrpostmantome. I'm cleaning up this repo and doing something new for the examples with v1 so I'll sort this as part of that work (and keep this open until that's done.)

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

No branches or pull requests

2 participants