File tree Expand file tree Collapse file tree
src/NuGet.Core/NuGet.ProjectModel/ProjectLockFile Expand file tree Collapse file tree Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments