Skip to content

Commit 8a6bfd8

Browse files
authored
Ensure durable base package for dotnet isolated is updated to latest (#4645)
1 parent ad76c77 commit 8a6bfd8

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/commands/createFunction/durableSteps/DurableProjectConfigureStep.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,9 @@ export class DurableProjectConfigureStep<T extends IFunctionWizardContext> exten
196196

197197
// Although the templates should incorporate this package already, it is often included with an out-dated version
198198
// which can lead to errors on first run. To improve this experience for our users, ensure that the latest version is used.
199-
if (!isDotnetIsolated) {
199+
if (isDotnetIsolated) {
200+
packages.push({ name: durableUtils.dotnetIsolatedDfBasePackage });
201+
} else {
200202
packages.push({ name: durableUtils.dotnetInProcDfBasePackage });
201203
}
202204

src/utils/durableUtils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export namespace durableUtils {
2323
export const dotnetInProcDTSPackage: string = 'Microsoft.Azure.WebJobs.Extensions.DurableTask.AzureManaged';
2424
export const dotnetIsolatedDTSPackage: string = 'Microsoft.Azure.Functions.Worker.Extensions.DurableTask.AzureManaged';
2525
export const dotnetInProcDfBasePackage: string = 'Microsoft.Azure.WebJobs.Extensions.DurableTask';
26+
export const dotnetIsolatedDfBasePackage: string = 'Microsoft.Azure.Functions.Worker.Extensions.DurableTask';
2627
export const nodeDfPackage: string = 'durable-functions';
2728
export const pythonDfPackage: string = 'azure-functions-durable';
2829

0 commit comments

Comments
 (0)