Skip to content

Could not load file or assembly Moq, Version=4.8.0.0 when used with higher version of Moq #1

@ddimkovikj

Description

@ddimkovikj

Getting the following exception when trying to use this package with Moq 4.16.1:

---- System.IO.FileLoadException : Could not load file or assembly 'Moq, Version=4.8.0.0, Culture=neutral, PublicKeyToken=69f491c39445e920' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Stack Trace: 
<test_method_clientAsync>d__7.MoveNext()
AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine)
TestName.TestMethodNameAsync()

Binding redirects didn't help either, getting:

System.IO.FileLoadException : Could not load file or assembly 'Moq, Version=4.16.1.0`

Does anyone have a fix for this?

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