Skip to content

Commit 5833940

Browse files
authored
Update .NET Isolated detection to check against the template ID (#3644)
1 parent f9cafd0 commit 5833940

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/durableUtils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import * as path from "path";
88
import { Uri } from "vscode";
99
import * as xml2js from "xml2js";
1010
import { IFunctionWizardContext } from "../commands/createFunction/IFunctionWizardContext";
11-
import { ConnectionKey, DurableBackend, DurableBackendValues, hostFileName, ProjectLanguage, requirementsFileName } from "../constants";
11+
import { ConnectionKey, DurableBackend, DurableBackendValues, ProjectLanguage, hostFileName, requirementsFileName } from "../constants";
1212
import { ext } from "../extensionVariables";
1313
import { IHostJsonV2, INetheriteTaskJson, ISqlTaskJson, IStorageTaskJson } from "../funcConfig/host";
1414
import { localize } from "../localize";
@@ -151,7 +151,7 @@ export namespace durableUtils {
151151

152152
async function installDotnetDependencies(context: IFunctionWizardContext): Promise<void> {
153153
const packageNames: string[] = [];
154-
const isDotnetIsolated: boolean = /Isolated/i.test(context.projectTemplateKey ?? '');
154+
const isDotnetIsolated: boolean = /Isolated/i.test(context.functionTemplate?.id ?? '');
155155

156156
switch (context.newDurableStorageType) {
157157
case DurableBackend.Netherite:

0 commit comments

Comments
 (0)