开发者

How to force VS10 to include DLLs into main app folder when publishing?

开发者 https://www.devze.com 2023-01-05 14:36 出处:网络
Note: I suspect my problem is related to this one: Visual Studio 2010 Publish Web feature not including all DLLs.

Note: I suspect my problem is related to this one: Visual Studio 2010 Publish Web feature not including all DLLs.

My app has some references that are wrappers for non-.NET libraries. These wrappers need the original DLL to be in the same directory as them and the executable.

The problem comes when publishing. Following the advice I found scattered around SO, I included these DLLs as resources, set "Copy to outcome directory" to "Copy always" and played around with "Build Action".

So f开发者_开发技巧ar the closest I've come is to set "Build Action" to "Content". As in, this seems to be the only way to actually copy files when publishing, without embedding them or compiling them. The problem is, the files are automatically moved to a folder called "Resources".

Does anyone know how to do this?


Is it possible that in your project you actually store the dlls in a folder called Resources? When files are copied to the output directory I think they're copied in the same directory structure they are in right then.

So you need to put the DLLs in your "root" project directory I think.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号