From a0a9418bd0f4316a12c6fb8b27ea641b1af8a98c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matija=20Ko=C5=BEelj?= Date: Tue, 31 Jan 2023 14:50:38 +0100 Subject: [PATCH] Fix dependency loader to resolve highest compatible package versions --- src/Connected.Host/DependencyLoader.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Connected.Host/DependencyLoader.cs b/src/Connected.Host/DependencyLoader.cs index daddddf..26881fa 100644 --- a/src/Connected.Host/DependencyLoader.cs +++ b/src/Connected.Host/DependencyLoader.cs @@ -286,7 +286,7 @@ public class DependencyLoader foreach (var dependency in sourceDependencies.Dependencies) { await GetPackageDependencies( - new PackageIdentity(dependency.Id, dependency.VersionRange.MaxVersion), + await GetPackageIdentity(new MicroServiceDescriptor { Name = dependency.Id, Version = dependency.VersionRange.ToString() }, cacheContext, logger, repositories, cancelToken), cacheContext, framework, logger,