Skip to content

Commit 9efe558

Browse files
Ignoring metadata-only packages
1 parent 2619332 commit 9efe558

2 files changed

Lines changed: 33 additions & 3 deletions

File tree

registry.json

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@
373373
},
374374
"TrackMan.SharedCalculator": {
375375
"listed": true,
376-
"version": "[6.167.0,)"
376+
"version": "6.167.0"
377377
},
378378
"Unity3D.Interpolate.NetStandard2": {
379379
"listed": true,
@@ -394,5 +394,29 @@
394394
"System.ServiceModel.Primitives": {
395395
"listed": true,
396396
"version": "4.10.0"
397+
},
398+
"TrackMan.SharedCalculator.runtime.linux-arm64": {
399+
"listed": true,
400+
"version": "9.112.0"
401+
},
402+
"TrackMan.SharedCalculator.runtime.linux-x64": {
403+
"listed": true,
404+
"version": "9.112.0"
405+
},
406+
"TrackMan.SharedCalculator.runtime.osx-arm64": {
407+
"listed": true,
408+
"version": "9.112.0"
409+
},
410+
"TrackMan.SharedCalculator.runtime.osx-x64": {
411+
"listed": true,
412+
"version": "9.112.0"
413+
},
414+
"TrackMan.SharedCalculator.runtime.win-arm64": {
415+
"listed": true,
416+
"version": "9.112.0"
417+
},
418+
"TrackMan.SharedCalculator.runtime.win-x64": {
419+
"listed": true,
420+
"version": "9.112.0"
397421
}
398422
}

src/UnityNuGet/RegistryCache.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,10 @@ RegistryEntry packageEntry
582582

583583
if (!packageEntry.Analyzer && collectedItems.Count == 0)
584584
{
585-
throw new InvalidOperationException($"The package does not contain a compatible .NET assembly {string.Join(",", _targetFrameworks.Select(x => x.Name))}");
585+
LogWarning(
586+
$"Skipping package `{identity}` because it does not contain a compatible .NET assembly " +
587+
$"for {string.Join(",", _targetFrameworks.Select(x => x.Name))}.");
588+
return;
586589
}
587590

588591
var isPackageNetStandard21Assembly = DotNetHelper.IsNetStandard21Assembly(identity.Id);
@@ -828,7 +831,10 @@ RegistryEntry packageEntry
828831

829832
if (!packageEntry.Analyzer && collectedItems.Count == 0)
830833
{
831-
throw new InvalidOperationException($"The package does not contain a compatible .NET assembly {string.Join(",", _targetFrameworks.Select(x => x.Name))}");
834+
LogWarning(
835+
$"Skipping package `{identity}` because it does not contain a compatible .NET assembly " +
836+
$"for {string.Join(",", _targetFrameworks.Select(x => x.Name))}.");
837+
return;
832838
}
833839

834840
// Write the native libraries

0 commit comments

Comments
 (0)