Where does DLLImport look for unmanaged DLLs?

前端 未结 2 1592
抹茶落季
抹茶落季 2021-02-14 07:45

A quick question: When declaring the DLLImport Attribute in .Net, where does the runtime look to resolve that DLL dependency? Would I have to dump the DLL and all of its

2条回答
  •  清酒与你
    2021-02-14 08:23

    Generally, you'd expect it to look at whatever's defined in the user's Path.

    To find out what this contains, from a command prompt, type echo %PATH% [Enter]

提交回复
热议问题