Skip to content

Errors with PowerShell 7 on .NET 5 RC1 #2

@krisztiankocsis

Description

@krisztiankocsis

When Cofl.Util is used from a PowerShell script, and executed using dotnet tool run pwsh (PowerShell 7.0.3, local tool) .NET 5 RC1, the following error occures:

Add-Type: /Users/krisztian.kocsis/.local/share/powershell/Modules/Cofl.Util/1.2.2/Cofl.Util.psm1:3
Line |
   3 |  …  $null -ne (Add-Type -AssemblyName System.Device -ErrorAction Silentl …
     |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Cannot find path '/Users/krisztian.kocsis/Documents/Projects/gitlab-dashboard/scripts/System.Device.dll' because it does not exist.

Add-Type: /Users/krisztian.kocsis/.local/share/powershell/Modules/Cofl.Util/1.2.2/Cofl.Util.psm1:4
Line |
   4 |  …  $null -ne (Add-Type -AssemblyName System.Speech -ErrorAction Silentl …
     |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Cannot find path '/Users/krisztian.kocsis/Documents/Projects/gitlab-dashboard/scripts/System.Speech.dll' because it does not exist.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions