{"action":"opened","issue":{"url":"https://api.github.com/repos/conan-io/conan/issues/3018","repository_url":"https://api.github.com/repos/conan-io/conan","labels_url":"https://api.github.com/repos/conan-io/conan/issues/3018/labels{/name}","comments_url":"https://api.github.com/repos/conan-io/conan/issues/3018/comments","events_url":"https://api.github.com/repos/conan-io/conan/issues/3018/events","html_url":"https://github.com/conan-io/conan/issues/3018","id":330801221,"node_id":"MDU6SXNzdWUzMzA4MDEyMjE=","number":3018,"title":"Dynamically linking to shared libraries for unit testing","user":{"login":"slnovak","id":270691,"node_id":"MDQ6VXNlcjI3MDY5MQ==","avatar_url":"https://avatars1.githubusercontent.com/u/270691?v=4","gravatar_id":"","url":"https://api.github.com/users/slnovak","html_url":"https://github.com/slnovak","followers_url":"https://api.github.com/users/slnovak/followers","following_url":"https://api.github.com/users/slnovak/following{/other_user}","gists_url":"https://api.github.com/users/slnovak/gists{/gist_id}","starred_url":"https://api.github.com/users/slnovak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slnovak/subscriptions","organizations_url":"https://api.github.com/users/slnovak/orgs","repos_url":"https://api.github.com/users/slnovak/repos","events_url":"https://api.github.com/users/slnovak/events{/privacy}","received_events_url":"https://api.github.com/users/slnovak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-08T20:59:54Z","updated_at":"2018-06-08T20:59:54Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI'm using Conan 1.4.3 to develop a package on Windows using the Visual Studio generator to link to upstream Conan dependencies. As part of my Visual Studio solution, I'm wanting to run unit tests (outside of Conan's build in `test` command) that dynamically links to a .dll for a specific package (located in its .bin directory). I'm a tad confused as to how to either copy the .dll to an appropriate location or update my PATH. Note: running `conan install .` or `conan imports .` apparently doesn't copy the .dll to the local directory.\r\n\r\nIn the docs relating to [how to manage shared libraries](https://docs.conan.io/en/latest/howtos/manage_shared_libraries/env_vars.html#using-shared-libraries-from-dependencies), I see:\r\n\r\n> If you are executing something that depends on shared libraries belonging to your dependencies, such shared libraries have to be found at runtime. In Windows, it is enough if the package added its binary folder to the system `PATH`.\r\n\r\n+ How does the package add its binary folder to the system path?\r\n\r\nHowever, in the [using packages](https://docs.conan.io/en/latest/using_packages/conanfile_txt.html#imports) docs:\r\n\r\n> It is possible to add the folders of the libraries to the path (dynamic linker LD_LIBRARY_PATH path in Linux, DYLD_LIBRARY_PATH in OSX, or system PATH in Windows), or copy those shared libraries to some system folder, so they are found by the OS. But those are typical operations of deploys or final installation of apps, not desired while developing, and conan is intended for developers, so it tries not to mess with the OS.\r\n\r\n+ How do I copy shared libraries from dependencies when working out of a Conan package folder? Running `conan install .` or `conan imports .` doesn't copy appear to copy the target .dll into the project's `bin` folder.\r\n\r\nDo you have any recommendations on how to collect .dlls from upstream dependencies into the development environment (user space)?\r\n\r\nThanks! 👋 "}}
{"actor":{"display_login":"slnovak"}}