Skip to content

Commit

Permalink
maybe?:D
Browse files Browse the repository at this point in the history
  • Loading branch information
nkolev92 committed Oct 9, 2023
1 parent 0885442 commit 8e230a3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ public Library GetLibrary(LibraryRange libraryRange, NuGetFramework targetFramew
// This must exist in the external references
if (_externalProjectsByUniqueName.TryGetValue(name, out ExternalProjectReference externalReference))
{
if (libraryRange.VersionRange.FindBestMatch(new NuGetVersion[] { externalReference.PackageSpec.Version }) != null)
if (externalReference.PackageSpec == null ||
libraryRange.VersionRange.FindBestMatch(new NuGetVersion[] { externalReference.PackageSpec.Version }) != null)
{
packageSpec = externalReference.PackageSpec;
}
Expand Down

0 comments on commit 8e230a3

Please sign in to comment.