-
Notifications
You must be signed in to change notification settings - Fork 258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IVSPackageInstaller/IVsPackageInstaller2 install dependency lowest version #6833
Comments
@BilgehanYildiz If you're concerned with getting the latest package, I'd suggest installing that explicitly, and passing ignore dependencies as false. Here's our resolution strategy for PackageReference projects. Does this answer your questions/unblock you? |
This cause performance issue from me each time I check package dependency find its latest version and install it?What you suggest? |
If you know the dependency tree, you don't need to specify the version. Then NuGet's caching mechanism would make it a little more performant, but still lower than letting NuGet do it's own thing. Can you tell us more about your scenario? Why is it important for you that the transitive dependencies are latest? Do you own all packages to be installed? Or do you only own the direct dependency? Is your scenario public? Please note that historically we haven't been adding IVS NuGet APIs very lbierally, we'd need a good amount of customers to ask for us to consider an enhancement. |
Hi I dont know dependency tree.But if nuget has api for that I can find.Actually myrequest is simple I want to use installatestmethod with latest dependency if you add this feature it is functional.I own all packages.A sample scenario I have a OracleDataAccess dependecy with my package and OracleDataAccess dependecy is latest version.When I use installlatest that time it decrease my oracledataaccess version and it cause problem |
If you own all packages, you already know the dependency tree then. Do you really need to be using IVs APIs if you're not shipping an external feature? |
I already write my code,but if you add this feature to vsinstaller it is helpful.A parameter like ignoredependcy.something like that DependecyLevel lowest or highest thanks |
when I want to install with dependencies it is not install latest version of dependency.It is installing lowest version of dependency.
IVsPackageInstaller2.InstallLatestPackage or IVsPackageInstaller
Scenario
Package A Latest Version 1.0.5 and has dependency to Package B
Package B Latest Version 1.0.9 and lowest version is 1.0.0
when I install PackageA it is installed 1.0.5 and find its dependecy package B and install lowest version 1.0.0
How can I force to install dependency latest version too.
Regards
The text was updated successfully, but these errors were encountered: