diff --git a/TwinpackShared/Protocol/Nuget/NugetServer.cs b/TwinpackShared/Protocol/Nuget/NugetServer.cs index 0ebfc53..a95cbdf 100644 --- a/TwinpackShared/Protocol/Nuget/NugetServer.cs +++ b/TwinpackShared/Protocol/Nuget/NugetServer.cs @@ -333,7 +333,7 @@ public virtual async Task GetPackageVersionAsync(PlcL IPackageSearchMetadata x = library.Version == null ? packages.FirstOrDefault() : packages.FirstOrDefault(p => p.Identity.Version.Version.ToString() == library.Version); if (x == null) - throw new Exceptions.LibraryNotFoundException(library.Name, library.Version, $"Package {library.Name} {library.Version} (distributor: {library.DistributorName}) not found!"); + return new PackageVersionGetResponse(); if (!x.Tags?.ToLower().Contains("library") == true && !x.Tags?.ToLower().Contains("plc-library") == true) throw new Exceptions.LibraryFileInvalidException($"Package {library.Name} {library.Version} (distributor: {library.DistributorName}) does not have a 'plc-library' or 'library' tag!");