diff --git a/.build/Build.Environment.cs b/.build/Build.Environment.cs index a3a82e18a69..a210e60fd65 100644 --- a/.build/Build.Environment.cs +++ b/.build/Build.Environment.cs @@ -29,4 +29,5 @@ partial class Build AbsolutePath TemplatesNuSpec => RootDirectory / "templates" / "v12" / "HotChocolate.Templates.nuspec"; AbsolutePath EmptyServer12Proj => RootDirectory / "templates" / "v12" / "server" / "HotChocolate.Template.Server.csproj"; AbsolutePath EmptyAzf12Proj => RootDirectory / "templates" / "v12" / "function" / "HotChocolate.Template.AzureFunctions.csproj"; + AbsolutePath EmptyAzfUp12Proj => RootDirectory / "templates" / "v12" / "function-isolated" / "HotChocolate.Template.AzureFunctions.csproj"; } diff --git a/.build/Build.Publish.cs b/.build/Build.Publish.cs index 9e866597fac..9e949885212 100644 --- a/.build/Build.Publish.cs +++ b/.build/Build.Publish.cs @@ -57,6 +57,9 @@ partial class Build projFile = File.ReadAllText(EmptyAzf12Proj); File.WriteAllText(EmptyAzf12Proj, projFile.Replace("11.1.0", GitVersion.SemVer)); + projFile = File.ReadAllText(EmptyAzfUp12Proj); + File.WriteAllText(EmptyAzfUp12Proj, projFile.Replace("11.1.0", GitVersion.SemVer)); + DotNetBuildSonarSolution( PackSolutionFile, include: file => diff --git a/templates/v12/function-isolated/HotChocolate.Template.AzureFunctions.csproj b/templates/v12/function-isolated/HotChocolate.Template.AzureFunctions.Isolated.csproj similarity index 100% rename from templates/v12/function-isolated/HotChocolate.Template.AzureFunctions.csproj rename to templates/v12/function-isolated/HotChocolate.Template.AzureFunctions.Isolated.csproj diff --git a/templates/v12/function-isolated/local.settings.json b/templates/v12/function-isolated/local.settings.json new file mode 100644 index 00000000000..9803d637f40 --- /dev/null +++ b/templates/v12/function-isolated/local.settings.json @@ -0,0 +1,7 @@ +{ + "IsEncrypted": false, + "Values": { + "AzureWebJobsStorage": "UseDevelopmentStorage=true", + "FUNCTIONS_WORKER_RUNTIME": "dotnet-isolated" + } +} \ No newline at end of file