@@ -52,16 +52,12 @@ public partial class LinuxInstallerTests : IDisposable
52
52
$ "{ DotnetRuntimePrefix } { Config . TargetFrameworkVersion } ",
53
53
$ "{ DotnetTargetingPackPrefix } { Config . TargetFrameworkVersion } ",
54
54
$ "{ DotnetApphostPackPrefix } { Config . TargetFrameworkVersion } ",
55
- NetStandardTargetingPackName ,
56
55
$ "{ AspNetCoreRuntimePrefix } { Config . TargetFrameworkVersion } ",
57
56
$ "{ AspNetCoreTargetingPackPrefix } { Config . TargetFrameworkVersion } "
58
57
}
59
58
}
60
59
} ;
61
60
62
- private static readonly Uri NetStandard21RpmPackage = new Uri ( "https://dotnetcli.blob.core.windows.net/dotnet/Runtime/3.1.0/netstandard-targeting-pack-2.1.0-x64.rpm" ) ;
63
- private static readonly Uri NetStandard21DebPackage = new Uri ( "https://dotnetcli.blob.core.windows.net/dotnet/Runtime/3.1.0/netstandard-targeting-pack-2.1.0-x64.deb" ) ;
64
-
65
61
// Transform patch versions in 100-199 range by removing leading "1"
66
62
// e.g., 10.0.100-rc.1.25405.108 -> 10.0.0-rc.1.25405.108
67
63
// e.g., 10.0.112-rc.1.25405.108 -> 10.0.12-rc.1.25405.108
@@ -95,8 +91,6 @@ public partial class LinuxInstallerTests : IDisposable
95
91
private const string AspNetCoreRuntimePrefix = "aspnetcore-runtime-" ;
96
92
private const string AspNetCoreTargetingPackPrefix = "aspnetcore-targeting-pack-" ;
97
93
private const string DotnetApphostPackPrefix = "dotnet-apphost-pack-" ;
98
- private const string NetStandardTargetingPackPrefix = "netstandard-targeting-pack-" ;
99
- private const string NetStandardTargetingPackName = $ "{ NetStandardTargetingPackPrefix } 2.1";
100
94
private const string DotnetSdkPrefix = "dotnet-sdk-" ;
101
95
102
96
public static bool IncludeRpmTests => Config . TestRpmPackages ;
@@ -200,7 +194,7 @@ private async Task InitializeContextAsync(PackageType packageType, bool initiali
200
194
File . Copy ( rpmPackage , Path . Combine ( _contextDir , Path . GetFileName ( rpmPackage ) ) ) ;
201
195
}
202
196
203
- await DownloadPackagesAsync ( packageArchitecture , packageType , NetStandard21RpmPackage ) ;
197
+ await DownloadPackagesAsync ( packageArchitecture , packageType ) ;
204
198
_rpmContextInitialized = true ;
205
199
}
206
200
else if ( ! _debContextInitialized )
@@ -211,7 +205,7 @@ private async Task InitializeContextAsync(PackageType packageType, bool initiali
211
205
File . Copy ( debPackage , Path . Combine ( _contextDir , Path . GetFileName ( debPackage ) ) ) ;
212
206
}
213
207
214
- await DownloadPackagesAsync ( packageArchitecture , packageType , NetStandard21DebPackage ) ;
208
+ await DownloadPackagesAsync ( packageArchitecture , packageType ) ;
215
209
_debContextInitialized = true ;
216
210
}
217
211
@@ -246,16 +240,11 @@ private async Task InitializeContextAsync(PackageType packageType, bool initiali
246
240
}
247
241
}
248
242
249
- private async Task DownloadPackagesAsync ( string packageArchitecture , PackageType packageType , Uri netStandardPackageUri )
243
+ private async Task DownloadPackagesAsync ( string packageArchitecture , PackageType packageType )
250
244
{
251
245
// Collect URLs and file names for downloading
252
246
var downloadsToProcess = new List < ( Uri url , string fileName ) > ( ) ;
253
247
254
- if ( Config . Architecture == Architecture . X64 )
255
- {
256
- downloadsToProcess . Add ( ( netStandardPackageUri , netStandardPackageUri . Segments . Last ( ) ) ) ;
257
- }
258
-
259
248
// Since this is for a non-1xx branch, we never produced runtime packages. Download these from
260
249
// the referenced 1xx build instead.
261
250
if ( ! Config . DotNetBuildSharedComponents )
@@ -437,11 +426,6 @@ private List<string> GetPackageList(string baseImage, PackageType packageType)
437
426
AddPackage ( packageList , AspNetCoreRuntimePrefix , packageType ) ;
438
427
AddPackage ( packageList , AspNetCoreTargetingPackPrefix , packageType ) ;
439
428
AddPackage ( packageList , DotnetApphostPackPrefix , packageType ) ;
440
- if ( Config . Architecture == Architecture . X64 )
441
- {
442
- // netstandard package exists for x64 only
443
- AddPackage ( packageList , NetStandardTargetingPackPrefix , packageType ) ;
444
- }
445
429
AddPackage ( packageList , DotnetSdkPrefix , packageType ) ;
446
430
447
431
return packageList ;
@@ -570,8 +554,8 @@ private void ValidatePackageDependencies(List<string> list, PackageType packageT
570
554
{
571
555
foreach ( string package in list )
572
556
{
573
- // Skip netstandard and runtime-deps packages as they are not expected to have .NET dependencies
574
- if ( package . StartsWith ( NetStandardTargetingPackPrefix ) || package . StartsWith ( DotnetRuntimeDepsPrefix ) )
557
+ // Skip runtime-deps packages as they are not expected to have .NET dependencies
558
+ if ( package . StartsWith ( DotnetRuntimeDepsPrefix ) )
575
559
{
576
560
continue ;
577
561
}
@@ -589,14 +573,6 @@ private void EnsurePackageContainsExpectedDependencies(string package, PackageTy
589
573
? _expectedPackageDependencies [ packagePrefix ]
590
574
: [ ] ;
591
575
592
- if ( Config . Architecture == Architecture . Arm64 && expectedDependencies . Contains ( NetStandardTargetingPackName ) )
593
- {
594
- // If we're on Arm64, remove netstandard-targeting-pack-2.1 dependency, as it is x64 only
595
- expectedDependencies = expectedDependencies
596
- . Where ( dep => ! dep . StartsWith ( NetStandardTargetingPackName ) )
597
- . ToList ( ) ;
598
- }
599
-
600
576
Assert . Equal ( expectedDependencies . OrderBy ( x => x ) , dependencies . OrderBy ( x => x ) ) ;
601
577
}
602
578
0 commit comments