Skip to content

Commit

Permalink
Switch back to default .NET images (undo #2996, #3029) (#3516)
Browse files Browse the repository at this point in the history
  • Loading branch information
bwateratmsft authored May 9, 2022
1 parent f0096f7 commit f7506c9
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ const minCSharpVersionString = '1.23.9';
const aspNetBaseImage = 'mcr.microsoft.com/dotnet/aspnet';
const consoleNetBaseImage = 'mcr.microsoft.com/dotnet/runtime';
const netSdkImage = 'mcr.microsoft.com/dotnet/sdk';
const linuxTagSuffix = '-focal';

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

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

if (!wizardContext.serviceName) {
Expand Down

0 comments on commit f7506c9

Please sign in to comment.