@@ -49,9 +49,6 @@ public class ProcessFrameworkReferences : TaskBase
49
49
[ Output ]
50
50
public ITaskItem [ ] PackagesToDownload { get ; set ; }
51
51
52
- [ Output ]
53
- public ITaskItem [ ] LegacyFrameworkPackages { get ; set ; }
54
-
55
52
[ Output ]
56
53
public ITaskItem [ ] RuntimeFrameworks { get ; set ; }
57
54
@@ -84,7 +81,6 @@ protected override void ExecuteCore()
84
81
var frameworkReferenceMap = FrameworkReferences . ToDictionary ( fr => fr . ItemSpec , StringComparer . OrdinalIgnoreCase ) ;
85
82
86
83
List < ITaskItem > packagesToDownload = new List < ITaskItem > ( ) ;
87
- List < ITaskItem > legacyFrameworkPackages = new List < ITaskItem > ( ) ;
88
84
List < ITaskItem > runtimeFrameworks = new List < ITaskItem > ( ) ;
89
85
List < ITaskItem > targetingPacks = new List < ITaskItem > ( ) ;
90
86
List < ITaskItem > runtimePacks = new List < ITaskItem > ( ) ;
@@ -112,18 +108,6 @@ protected override void ExecuteCore()
112
108
continue ;
113
109
}
114
110
115
- if ( frameworkReference != null && ! string . IsNullOrEmpty ( knownFrameworkReference . LegacyFrameworkPackages ) )
116
- {
117
- foreach ( var packageAndVersion in knownFrameworkReference . LegacyFrameworkPackages . Split ( ';' ) )
118
- {
119
- var items = packageAndVersion . Split ( '/' ) ;
120
- TaskItem packageToReference = new TaskItem ( items [ 0 ] ) ;
121
- packageToReference . SetMetadata ( MetadataKeys . Version , items [ 1 ] ) ;
122
-
123
- legacyFrameworkPackages . Add ( packageToReference ) ;
124
- }
125
- }
126
-
127
111
// Get the path of the targeting pack in the targeting pack root (e.g. dotnet/ref)
128
112
TaskItem targetingPack = new TaskItem ( knownFrameworkReference . Name ) ;
129
113
targetingPack . SetMetadata ( MetadataKeys . PackageName , knownFrameworkReference . TargetingPackName ) ;
@@ -230,11 +214,6 @@ protected override void ExecuteCore()
230
214
PackagesToDownload = packagesToDownload . ToArray ( ) ;
231
215
}
232
216
233
- if ( legacyFrameworkPackages . Any ( ) )
234
- {
235
- LegacyFrameworkPackages = legacyFrameworkPackages . ToArray ( ) ;
236
- }
237
-
238
217
if ( runtimeFrameworks . Any ( ) )
239
218
{
240
219
RuntimeFrameworks = runtimeFrameworks . ToArray ( ) ;
@@ -412,19 +391,6 @@ public KnownFrameworkReference(ITaskItem item)
412
391
413
392
public string Profile => _item . GetMetadata ( "Profile" ) ;
414
393
415
- public string LegacyFrameworkPackages
416
- {
417
- get
418
- {
419
- var packages = _item . GetMetadata ( "LegacyFrameworkPackages" ) ;
420
- if ( string . IsNullOrEmpty ( packages ) )
421
- {
422
- packages = _item . GetMetadata ( "PackagesToReference" ) ;
423
- }
424
- return packages ;
425
- }
426
- }
427
-
428
394
public NuGetFramework TargetFramework { get ; }
429
395
}
430
396
}
0 commit comments