This commit is contained in:
Surgupta 2023-09-11 10:54:17 -07:00 коммит произвёл GitHub
Родитель 479fc30290
Коммит cde6da46ae
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 6 добавлений и 16 удалений

Просмотреть файл

@ -1,12 +1,6 @@
#Requires -Version 6
param(
[Parameter(Mandatory=$true)]
[ValidateNotNullOrEmpty()]
[String]
[ValidateSet("3", "4")]
$FunctionsRuntimeVersion,
[Switch]
$SkipStorageEmulator,
@ -23,6 +17,8 @@ param(
$SkipBuildOnPack
)
$FunctionsRuntimeVersion = 4
# A function that checks exit codes and fails script if an error is found
function StopOnFailedExecution {
if ($LastExitCode)

Просмотреть файл

@ -1,10 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup Condition="$(FunctionsRuntimeVersion) != '3'">
<TargetFramework>net6.0</TargetFramework>
<AzureFunctionsVersion>v4</AzureFunctionsVersion>
</PropertyGroup>
<PropertyGroup Condition="$(FunctionsRuntimeVersion) == '3'">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<AzureFunctionsVersion>v4</AzureFunctionsVersion>
</PropertyGroup>
@ -43,9 +38,8 @@
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.WebUtilities" Version="2.2.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="1.12.0" />
<PackageReference Condition="$(TestBuild) == 'true'" Include="Microsoft.Azure.Functions.Worker" Version="1.18.0" />
<PackageReference Condition="$(FunctionsRuntimeVersion) != '3'" Include="System.Text.Json" Version="6.0.5" />
<PackageReference Condition="$(FunctionsRuntimeVersion) == '3'" Include="System.Text.Json" Version="5.0.2" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="1.14.1" />
<PackageReference Condition="$(TestBuild) == 'true'" Include="Microsoft.Azure.Functions.Worker" Version="1.18.0" />
<PackageReference Include="System.Text.Json" Version="6.0.5" />
</ItemGroup>
</Project>