Skip to content

Commit

Permalink
Added new Azure Functions Template into Build
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelstaib committed Sep 12, 2022
1 parent df0fccd commit e58d4cf
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions .build/Build.Environment.cs
Expand Up @@ -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";
}
3 changes: 3 additions & 0 deletions .build/Build.Publish.cs
Expand Up @@ -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 =>
Expand Down
7 changes: 7 additions & 0 deletions templates/v12/function-isolated/local.settings.json
@@ -0,0 +1,7 @@
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "UseDevelopmentStorage=true",
"FUNCTIONS_WORKER_RUNTIME": "dotnet-isolated"
}
}

0 comments on commit e58d4cf

Please sign in to comment.