Closed Gernatch closed 5 years ago
(I'm not sure if I'm understanding the issue properly)
The command conan install
is triggerend automatically when you open a solution with a Conan project, and by default it will update all the requirements. If this is not the desired behavior, there are some configuration options you can use:
Setting "Update policy" to "False" will prevent the extension adding the --update
parameter to the conan install
call, so it won't download new versions/revisions from the remotes.
@jgsogo The issue here is after the installation of the extension. If a user installs Conan extension (developer version) not from the Visual Studio Market place, then once the extension is installed, it automatically queues the extension to update to the latest version which is 1.1.134.
If the user re-opens the Visual Studio it would have already updated to version 1.1.134 already which is not needed by all users.
NOTE:
It seems by default the extension is queued for updates to the latest version.
This can be disabled in the Visual Studio settings -- I don't think this is an issue with the actual extension. You can set the default behavior by navigating to:
Tools > Extensions & Updates > "Change your Extensions and Updates settings" > Uncheck "Automatically check for updates".
@LBHawk as mentioned above in Note, it is already unchecked for all extensions Visual Studio settings. I will check if there is anything else missing. I was also not really sure if it is an issue with actual extension.
We noticed it looks okay with all settings unchecked as follows:
If only unchecked for "All user extensions", it still updates Conan Extension.
Hi, I think this has nothing to do with this extension, it's about how VS handles updates.
Googling I've found that you have to run VS as administrator (not being admin yourself, but "running as administrator") in order to see/change the value of the "Automatically update extensions" checkbox. Depending on how you have installed your extensions you can get more fine-grained control over updates.
It's nothing to be done in the extension, we have no control over update policy, it's controlled only by Visual Studio settings.
If you open visual studio after immediately installing a dev build, it automatically updates to latest with prompt and then if you reopen visual studio in any case again it will have latest version.