diff --git a/schema/staticwebapp.config.json b/schema/staticwebapp.config.json index 3d36c64fb..6cf29dbe4 100644 --- a/schema/staticwebapp.config.json +++ b/schema/staticwebapp.config.json @@ -588,6 +588,7 @@ "dotnet:8.0", "dotnet-isolated:8.0", "dotnet-isolated:9.0", + "dotnet-isolated:10.0", "node:18", "node:20", "node:22", diff --git a/src/cli/commands/deploy/deploy.ts b/src/cli/commands/deploy/deploy.ts index f748accde..f674ac232 100644 --- a/src/cli/commands/deploy/deploy.ts +++ b/src/cli/commands/deploy/deploy.ts @@ -37,6 +37,11 @@ export async function deploy(options: SWACLIConfig) { apiVersion, } = options; + // normalize the hyphenated variant to the canonical value used throughout the codebase + if (apiLanguage === "dotnet-isolated") { + apiLanguage = "dotnetisolated"; + } + if (dryRun) { logger.warn("***********************************************************************"); logger.warn("* WARNING: Running in dry run mode. This project will not be deployed *"); diff --git a/src/core/constants.ts b/src/core/constants.ts index d29c94ebf..3d41b2873 100644 --- a/src/core/constants.ts +++ b/src/core/constants.ts @@ -307,7 +307,7 @@ export const DEFAULT_VERSION = { export const SUPPORTED_VERSIONS = { Node: ["18", "20", "22"], Dotnet: ["8.0"], - DotnetIsolated: ["8.0", "9.0"], + DotnetIsolated: ["8.0", "9.0", "10.0"], Python: ["3.9", "3.10", "3.11"], };