Skip to content

Commit 84e1a99

Browse files
authored
Cherry-pick Switch back to default .NET images (undo #2996, #3029) (#3516) (#3650)
1 parent a821ee5 commit 84e1a99

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/scaffolding/wizard/netCore/NetCoreGatherInformationStep.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ const minCSharpVersionString = '1.23.9';
2020
const aspNetBaseImage = 'mcr.microsoft.com/dotnet/aspnet';
2121
const consoleNetBaseImage = 'mcr.microsoft.com/dotnet/runtime';
2222
const netSdkImage = 'mcr.microsoft.com/dotnet/sdk';
23-
const linuxTagSuffix = '-focal';
2423

2524
const cSharpExtensionId = 'ms-dotnettools.csharp';
2625
const cSharpConfigId = 'csharp';
@@ -59,9 +58,8 @@ export class NetCoreGatherInformationStep extends GatherInformationStep<NetCoreS
5958

6059
// semver.coerce tolerates version strings like "5.0" which is typically what is present in the .NET project file
6160
const netCoreVersion = semver.coerce(netCoreVersionString);
62-
const tagSuffix = wizardContext.netCorePlatformOS === "Linux" ? linuxTagSuffix : '';
63-
wizardContext.netCoreRuntimeBaseImage = wizardContext.platform === '.NET: ASP.NET Core' ? `${aspNetBaseImage}:${netCoreVersion.major}.${netCoreVersion.minor}${tagSuffix}` : `${consoleNetBaseImage}:${netCoreVersion.major}.${netCoreVersion.minor}${tagSuffix}`;
64-
wizardContext.netCoreSdkBaseImage = `${netSdkImage}:${netCoreVersion.major}.${netCoreVersion.minor}${tagSuffix}`;
61+
wizardContext.netCoreRuntimeBaseImage = wizardContext.platform === '.NET: ASP.NET Core' ? `${aspNetBaseImage}:${netCoreVersion.major}.${netCoreVersion.minor}` : `${consoleNetBaseImage}:${netCoreVersion.major}.${netCoreVersion.minor}`;
62+
wizardContext.netCoreSdkBaseImage = `${netSdkImage}:${netCoreVersion.major}.${netCoreVersion.minor}`;
6563
}
6664

6765
if (!wizardContext.serviceName) {

0 commit comments

Comments
 (0)