Skip to content

Commit 552b529

Browse files
committed
cleanup
1 parent 7a524a6 commit 552b529

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/NuGet.Core/NuGet.ProjectModel/ProjectLockFile/PackagesLockFileUtilities.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,6 @@ public static LockFileValidationResult IsLockFileValid(DependencyGraphSpec dgSpe
228228
}
229229
else
230230
{
231-
// This does not consider ATF.
232231
p2pSpecTargetFrameworkInformation = p2pSpec.GetNearestTargetFramework(targetFrameworkInformation.FrameworkName, targetFrameworkInformation.TargetAlias);
233232
if (p2pSpecTargetFrameworkInformation.FrameworkName == null)
234233
{
@@ -241,7 +240,7 @@ public static LockFileValidationResult IsLockFileValid(DependencyGraphSpec dgSpe
241240
// No compatible framework found
242241
if (p2pSpecTargetFrameworkInformation != null && p2pSpecTargetFrameworkInformation.FrameworkName != null)
243242
{
244-
// We need to compare the main framework only. Ignoring fallbacks.
243+
// Get it based on the matching alias. The appropriate target framework information has already been calculated.
245244
var p2pSpecProjectRestoreMetadataFrameworkInfo = p2pSpec.RestoreMetadata.TargetFrameworks.FirstOrDefault(e => e.TargetAlias == p2pSpecTargetFrameworkInformation.TargetAlias);
246245

247246
if (p2pSpecProjectRestoreMetadataFrameworkInfo != null)

0 commit comments

Comments
 (0)