You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to suggest adding some documentation, since this took me some time to figure out.
The Windows implementation for showing a notification requires Windows PowerShell, since I assume there is windows-specific UI code required to do that kind of thing. So this module can't be placed in the standard module locations for PowerShell 7/Core. It needs to be placed in C:\Windows\System32\WindowsPowerShell\v1.0\Modules. I think this should be spelled out, since the "cross-platform" description made me assume otherwise. This still doesn't get auto-loaded properly though, because the manifest says that this module works with Core. So PowerShell loads the module directly instead of using the compatibility layer.
In short: on Windows, this module needs to be downloaded to C:\Windows\System32\WindowsPowerShell\v1.0\Modules and the manifest file needs to be edited to remove Core from CompatiblePSEditions to work properly with PowerShell 7/Core. I could submit a PR with this added to the readme, but was wondering if maybe I misunderstand something and there could be a discussion on ways to improve this.
The text was updated successfully, but these errors were encountered:
spfyyy
changed the title
Doesn't Auto-load with Powershell 7/Core on Windows
Doesn't Auto-load in Compatibility Mode with Powershell 7/Core on Windows
Jul 5, 2021
This module should load in any version of PowerShell up through 7.0 one Windows, but will require an update to support 7.1 and above on Windows. Unfortunatly, my availability to sort out the update is limited at the moment.
If the Windows + PS7.1 usecase is required in the short to medium term, my suggestion would be to use BurntToast instead.
I'd like to suggest adding some documentation, since this took me some time to figure out.
The Windows implementation for showing a notification requires Windows PowerShell, since I assume there is windows-specific UI code required to do that kind of thing. So this module can't be placed in the standard module locations for PowerShell 7/Core. It needs to be placed in
C:\Windows\System32\WindowsPowerShell\v1.0\Modules
. I think this should be spelled out, since the "cross-platform" description made me assume otherwise. This still doesn't get auto-loaded properly though, because the manifest says that this module works with Core. So PowerShell loads the module directly instead of using the compatibility layer.In short: on Windows, this module needs to be downloaded to
C:\Windows\System32\WindowsPowerShell\v1.0\Modules
and the manifest file needs to be edited to removeCore
fromCompatiblePSEditions
to work properly with PowerShell 7/Core. I could submit a PR with this added to the readme, but was wondering if maybe I misunderstand something and there could be a discussion on ways to improve this.The text was updated successfully, but these errors were encountered: