Are there any better ways to copy a native dll to the bin folder?

前端 未结 6 1050
别跟我提以往
别跟我提以往 2020-12-01 09:15

I have C# wrapper code that calls functions from a native (C++) dll. Currently, I can add a reference to the C# dll and have set the \'Copy Local\' option to true. However t

6条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-01 09:53

    Use Project + Add Existing Item and select the DLL. Select the added file in the Solution Explorer window. In the Properties window, change the Copy to Output Directory setting to "Copy if newer".

提交回复
热议问题