Skip to content

Dependency conflicts between our modules #1490

@ili101

Description

@ili101

I load Microsoft.Identity.Client.dll from PartnerCustomerCommunity.psd1 like this:

    RequiredAssemblies = @(
        '.\lib\Microsoft.Identity.Client.dll',
        '.\lib\Microsoft.Store.PartnerCenter.dll',
        '.\lib\Microsoft.Store.PartnerCenter.Models.dll',
        '.\lib\Microsoft.Store.PartnerCenter.Extensions.dll'
    )

If Connect-MgGraph run first then Import-Module -Name PartnerCustomerCommunity there is no problem, both modules work.
If Import-Module -Name PartnerCustomerCommunity run first then Connect-MgGraph, Graph will error:

Connect-MgGraph: Could not load file or assembly 'Microsoft.IdentityModel.Abstractions, Version=6.18.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified.

# Install-Module Microsoft.Graph
# Install-Module -Name PartnerCustomerCommunity -AllowPrerelease

# Works
Connect-MgGraph
Import-Module -Name PartnerCustomerCommunity -Verbose

# Doesn't work
Import-Module -Name PartnerCustomerCommunity -Verbose
Connect-MgGraph

# Doesn't work (run Microsoft.Graph from inside PartnerCustomerCommunity)
New-PartnerWebApp -DisplayName Test

Isn't this shuld have solved it? #585
What can be done?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions