Update E2E test app to Net7 (#1894)
This commit is contained in:
Родитель
479fc30290
Коммит
cde6da46ae
|
@ -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>
|
||||
|
|
Загрузка…
Ссылка в новой задаче