Skip to content

Invalid path to YamlDotNet assembly in Initialize-PsYAML_Module #4

Description

@lukeryannetnz

Hello!

I'm using this module for the first time, following the recommend initial load code on your website.

I find that when the module initializes, it's trying to find the YamlDotNet assembly in the wrong path.

VERBOSE: Performing the operation "Set Alias" on target "Name: nuget Value:
C:\Users\luke.ryan\Documents\WindowsPowerShell\Modules\PSYaml\nuget.exe".
Add-Type : Cannot bind parameter 'Path' to the target. Exception setting "Path": "Cannot find path
'C:\Users\luke.ryan\Documents\WindowsPowerShell\Modules\PSYaml\YAMLDotNet\YamlDotNet.4.2.1\lib\dotnet\yamldotnet.dll'
because it does not exist."
At C:\Users\luke.ryan\Documents\WindowsPowerShell\Modules\psyaml\PSYaml.psm1:44 char:20

  • ... -Type -Path "$YAMLDotNetLocation\YAMLDotNet$CurrentRelease\lib\dotne ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : WriteError: (:) [Add-Type], ParameterBindingException
    • FullyQualifiedErrorId : ParameterBindingFailed,Microsoft.PowerShell.Commands.AddTypeCommand

Activity

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

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