@@ -42,7 +42,6 @@ public partial class InstallWorkloadFromArtifacts : Task
42
42
[ Required , NotNull ]
43
43
public string SdkWithNoWorkloadInstalledPath { get ; set ; } = string . Empty ;
44
44
45
- public bool SkipUpdateAppRefPack { get ; set ; }
46
45
public bool OnlyUpdateManifests { get ; set ; }
47
46
48
47
private const string s_nugetInsertionTag = "<!-- TEST_RESTORE_SOURCES_INSERTION_LINE -->" ;
@@ -159,11 +158,6 @@ private bool ExecuteInternal(InstallWorkloadRequest req)
159
158
if ( ! InstallPacks ( req , nugetConfigContents ) )
160
159
return false ;
161
160
162
- if ( ! SkipUpdateAppRefPack )
163
- UpdateAppRef ( req . TargetPath , req . Version ) ;
164
- else
165
- Log . LogMessage ( MessageImportance . Low , "Skipping update of app.ref pack" ) ;
166
-
167
161
return ! Log . HasLoggedErrors ;
168
162
}
169
163
@@ -256,31 +250,6 @@ private bool InstallPacks(InstallWorkloadRequest req, string nugetConfigContents
256
250
return ! Log . HasLoggedErrors ;
257
251
}
258
252
259
- private void UpdateAppRef ( string sdkPath , string version )
260
- {
261
- Log . LogMessage ( MessageImportance . Normal , $ " - Updating Targeting pack") ;
262
-
263
- string pkgPath = Path . Combine ( LocalNuGetsPath , $ "Microsoft.NETCore.App.Ref.{ version } .nupkg") ;
264
- if ( ! File . Exists ( pkgPath ) )
265
- throw new LogAsErrorException ( $ "Could not find { pkgPath } needed to update the targeting pack to the newly built one." +
266
- " Make sure to build the subset `packs`, like `./build.sh -os browser -s mono+libs+packs`." ) ;
267
-
268
- string packDir = Path . Combine ( sdkPath , "packs" , "Microsoft.NETCore.App.Ref" ) ;
269
- string [ ] dirs = Directory . EnumerateDirectories ( packDir ) . ToArray ( ) ;
270
- if ( dirs . Length != 1 )
271
- throw new LogAsErrorException ( $ "Expected to find exactly one versioned directory under { packDir } , but got " +
272
- string . Join ( ',' , dirs ) ) ;
273
-
274
- string dstDir = dirs [ 0 ] ;
275
-
276
- Directory . Delete ( dstDir , recursive : true ) ;
277
- Log . LogMessage ( $ "Deleting { dstDir } ") ;
278
-
279
- Directory . CreateDirectory ( dstDir ) ;
280
- ZipFile . ExtractToDirectory ( pkgPath , dstDir ) ;
281
- Log . LogMessage ( $ "Extracting { pkgPath } to { dstDir } ") ;
282
- }
283
-
284
253
private string GetNuGetConfig ( )
285
254
{
286
255
string contents = File . ReadAllText ( TemplateNuGetConfigPath ) ;
0 commit comments