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

Can we support list or search package from private conan-server #230

Open daiybh opened 1 month ago

daiybh commented 1 month ago

Can we support list or search package from private conan-server

today ,I found it only support from conan-center.

icegull commented 1 month ago

Agree. We need that features.

czoido commented 1 month ago

Hi @daiybh, @icegull,

Thanks a lot for the question. We have no plans to implement this for the moment as it would add an extra complexity for the plugin. Right now, the list of Conan packages comes from a hardcoded json that's updated daily to reflect the updates in Conan Center (if you click the 🔄 button it will be updated) but there's no option to show the contents of a custom repo. You can edit the conandata.yml that the extension generates (dont forget to remove the comments, otherwise the extension overwrites the contents) and there you can specify your own packages, that will be fetched by order of preference that you have configured in the same way that any regular conan install works. I think the easiest way of making sure that you fetch the requirements from your custom repository putting your remote first in the list of remotes (you can do that with conan remote update if you already have the remote configured) or even removing or disabling all remotes but the one you want.

Hope this helps.

czoido commented 1 month ago

Related to https://github.com/conan-io/conan-vs-extension/issues/224