conan-io / conan-vs-extension

Conan Extension for Visual Studio
https://marketplace.visualstudio.com/items?itemName=conan-io.conan-vs-extension
MIT License
59 stars 34 forks source link

Projects using conan extensions cannot be executed after moving the project #250

Closed zhangshiyu12345 closed 3 months ago

zhangshiyu12345 commented 3 months ago

After using this extension, I successfully generated an. exe file. However, if I move this. exe file to a new environment without the corresponding conan package, it will fail to execute. How can I solve this problem

memsharded commented 3 months ago

If it has shared dependencies, you will need to gather them, maybe using a --deployer, like the runtime one. Or you might try to link it statically, it depends on how you are building the executable.