Don't fail framework assembly resolution for version mismatches
- This allows a nice warning to appear if the version is floated
This commit is contained in:
parent
51d5b5baef
commit
af06d781c8
1 changed files with 8 additions and 13 deletions
|
@ -38,19 +38,14 @@ namespace Microsoft.DotNet.ProjectModel.Resolution
|
|||
return null;
|
||||
}
|
||||
|
||||
if (version == null || version.Version == assemblyVersion)
|
||||
{
|
||||
return new LibraryDescription(
|
||||
new LibraryIdentity(libraryRange.Name, new NuGetVersion(assemblyVersion), LibraryType.ReferenceAssembly),
|
||||
string.Empty, // Framework assemblies don't have hashes
|
||||
path,
|
||||
Enumerable.Empty<LibraryRange>(),
|
||||
targetFramework,
|
||||
resolved: true,
|
||||
compatible: true);
|
||||
}
|
||||
|
||||
return null;
|
||||
return new LibraryDescription(
|
||||
new LibraryIdentity(libraryRange.Name, new NuGetVersion(assemblyVersion), LibraryType.ReferenceAssembly),
|
||||
string.Empty, // Framework assemblies don't have hashes
|
||||
path,
|
||||
Enumerable.Empty<LibraryRange>(),
|
||||
targetFramework,
|
||||
resolved: true,
|
||||
compatible: true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue