Skip to content

AddReference FileNotFoundException #1077

@lzw-all-in

Description

@lzw-all-in

Environment

  • Pythonnet version: 2.4.0
  • Python version: 3.7
  • Operating System: Windows10

Details

clr.FindAssembly("VcClient")

it output:

'D:\\home\\lzw\\VcClient.dll'

but when I AddReference in this path it report exception:

clr.AddReference("D:\\home\\lzw\\VcClient.dll")

---------------------------------------------------------------------------
FileNotFoundException                     Traceback (most recent call last)
<ipython-input-43-045a91f26209> in <module>
----> 1 clr.AddReference("D:\\home\\lzw\\VcClient.dll")

FileNotFoundException: Unable to find assembly 'D:\home\lzw\VcClient.dll'.
   at Python.Runtime.CLRModule.AddReference(String name)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions