Skip to content

Invalid path to YamlDotNet assembly in Initialize-PsYAML_Module #4

@lukeryannetnz

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

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