proxb / PinnedItem

PowerShell module to support pinning items to the Taskbar and Start Menu
Apache License 2.0
12 stars 7 forks source link

Not working in PowerShell Core #3

Open verglor opened 3 years ago

verglor commented 3 years ago

I am getting the following error while trying to import module in PowerShell Core 7.1.0:

PS C:\Users\user> Import-Module -Name PinnedItem
Add-Type: C:\Users\user\Documents\PowerShell\Modules\PinnedItem\0.2.0.0\PinnedItem.psm1:39
Line |
  39 |  "@ -Language CSharpVersion3
     |               ~~~~~~~~~~~~~~
     | Cannot bind parameter 'Language'. Cannot convert value "CSharpVersion3" to type
     | "Microsoft.PowerShell.Commands.Language". Error: "Unable to match the identifier name CSharpVersion3
     | to a valid enumerator name. Specify one of the following enumerator names and try again: CSharp"
Mirviriam commented 1 year ago

Was running into the same problem. I submitted PR to handle that part as it works changing to just "@ -Language CSharp on my windows 10 workstation with .Net 4.5