Skip to content

ptapply fails version check in PowerShell 7 #69

@drab0wl

Description

@drab0wl

PowerShell 7 fails version check when patching because the assemblies have already been loaded.

pwsh.exe: Exception calling "LoadFrom" with "1" argument(s): "Could not load file or assembly 'Microsoft.VisualStudio.Shell.Connected, 
Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Assembly with same name is already loaded"

This could be because ps7 uses .NET vs Framework. I couldn't get it to work, but the files still patch. I tried switching to Load instead of LoadFrom but this will load from the GAC and fails anyway since it's using a full path.

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