fix NuGet package issues (cannot load System.Threading.Channels dll) by going back to older versions
This commit is contained in:
Родитель
2a72fe290e
Коммит
8eee1a52ed
|
@ -4,7 +4,7 @@
|
|||
<AzureFunctionsVersion>v3</AzureFunctionsVersion>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.NET.Sdk.Functions" Version="3.0.11" />
|
||||
<PackageReference Include="Microsoft.NET.Sdk.Functions" Version="3.0.1" />
|
||||
<ProjectReference Include="..\..\src\DurableTask.Netherite.AzureFunctions\DurableTask.Netherite.AzureFunctions.csproj" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
$name="unique-alphanumeric-name-no-dashes"
|
||||
$location="westus"
|
||||
$storageSku="Standard_LRS"
|
||||
$planSku="EP1"
|
||||
$planSku="EP2"
|
||||
$numNodes=1
|
||||
|
||||
if (($name -eq "unique-alphanumeric-name-no-dashes"))
|
||||
|
@ -27,10 +27,10 @@ $planName=$name
|
|||
Write-Host "Creating Resource Group..."
|
||||
az group create --name $groupName --location $location
|
||||
|
||||
Write-Host "Creating Storage Account"
|
||||
Write-Host "Creating Storage Account..."
|
||||
az storage account create --name $storageName --location $location --resource-group $groupName --sku $storageSku
|
||||
|
||||
Write-Host "Creating and Configuring Function App"
|
||||
Write-Host "Creating and Configuring Function App..."
|
||||
az functionapp plan create --resource-group $groupName --name $name --location $location --sku $planSku
|
||||
az functionapp create --name $functionAppName --storage-account $storageName --plan $functionAppName --resource-group $groupName --functions-version 3
|
||||
az functionapp plan update -g $groupName -n $functionAppName --max-burst $numNodes --number-of-workers $numNodes --min-instances $numNodes
|
||||
|
@ -38,5 +38,5 @@ az resource update -n $functionAppName/config/web -g $groupName --set propert
|
|||
az functionapp config appsettings set -n $functionAppName -g $groupName --settings EventHubsConnection=$Env:EventHubsConnection
|
||||
az functionapp config set -n $functionAppName -g $groupName --use-32bit-worker-process false
|
||||
|
||||
Write-Host "Publishing Code to Function App"
|
||||
func azure functionapp publish $functionAppName
|
||||
#Write-Host "Publishing Code to Function App..."
|
||||
#func azure functionapp publish $functionAppName
|
||||
|
|
|
@ -23,9 +23,9 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Azure.Functions.Extensions" Version="1.1.0" />
|
||||
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.DurableTask" Version="2.4.0" />
|
||||
<PackageReference Include="Microsoft.Azure.DurableTask.Core" Version="2.5.0" />
|
||||
<PackageReference Include="Microsoft.Azure.Functions.Extensions" Version="1.0.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
@ -9,12 +9,10 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.3" />
|
||||
<PackageReference Include="xunit" Version="2.4.1" />
|
||||
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" />
|
||||
<PackageReference Include="xunit" Version="2.4.0" />
|
||||
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.0" />
|
||||
<PackageReference Include="coverlet.collector" Version="1.2.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
@ -10,9 +10,9 @@
|
|||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Extensions.Logging" Version="5.0.0" />
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.3" />
|
||||
<PackageReference Include="xunit" Version="2.4.1" />
|
||||
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" />
|
||||
<PackageReference Include="xunit" Version="2.4.0" />
|
||||
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.0">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
|
|
|
@ -4,15 +4,18 @@
|
|||
<AzureFunctionsVersion>v3</AzureFunctionsVersion>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.NET.Sdk.Functions" Version="3.0.11" />
|
||||
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.DurableTask" Version="2.4.0" />
|
||||
<PackageReference Include="Microsoft.Azure.DurableTask.Core" Version="2.5.0" />
|
||||
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.Storage" Version="4.0.3" />
|
||||
<PackageReference Include="Microsoft.NET.Sdk.Functions" Version="3.0.1" />
|
||||
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.Storage" Version="3.0.8" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\src\DurableTask.Netherite.AzureFunctions\DurableTask.Netherite.AzureFunctions.csproj" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Update="deploy-to-new-plan.ps1">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Update="host.json">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
|
|
|
@ -0,0 +1,42 @@
|
|||
Write-Host "Setting parameters..."
|
||||
|
||||
# edit these parameters before running the script
|
||||
$name="unique-alphanumeric-name-no-dashes"
|
||||
$location="westus"
|
||||
$storageSku="Standard_LRS"
|
||||
$planSku="EP2"
|
||||
$numNodes=4
|
||||
|
||||
if (($name -eq "unique-alphanumeric-name-no-dashes"))
|
||||
{
|
||||
Write-Error "You have to edit this script: please insert valid parameter values."
|
||||
exit
|
||||
}
|
||||
if (($Env:EventHubsConnection -eq $null) -or ($Env:EventHubsConnection -eq ""))
|
||||
{
|
||||
Write-Error "You have to set the environment variable EventHubsConnection to use this script."
|
||||
exit
|
||||
}
|
||||
|
||||
# by default, use the same name for group, function app, storage account, and plan
|
||||
$groupName=$name
|
||||
$functionAppName=$name
|
||||
$storageName=$name
|
||||
$planName=$name
|
||||
|
||||
Write-Host "Creating Resource Group..."
|
||||
az group create --name $groupName --location $location
|
||||
|
||||
Write-Host "Creating Storage Account..."
|
||||
az storage account create --name $storageName --location $location --resource-group $groupName --sku $storageSku
|
||||
|
||||
Write-Host "Creating and Configuring Function App..."
|
||||
az functionapp plan create --resource-group $groupName --name $name --location $location --sku $planSku
|
||||
az functionapp create --name $functionAppName --storage-account $storageName --plan $functionAppName --resource-group $groupName --functions-version 3
|
||||
az functionapp plan update -g $groupName -n $functionAppName --max-burst $numNodes --number-of-workers $numNodes --min-instances $numNodes
|
||||
az resource update -n $functionAppName/config/web -g $groupName --set properties.minimumElasticInstanceCount=$numNodes --resource-type Microsoft.Web/sites
|
||||
az functionapp config appsettings set -n $functionAppName -g $groupName --settings EventHubsConnection=$Env:EventHubsConnection
|
||||
az functionapp config set -n $functionAppName -g $groupName --use-32bit-worker-process false
|
||||
|
||||
Write-Host "Publishing Code to Function App..."
|
||||
func azure functionapp publish $functionAppName
|
Загрузка…
Ссылка в новой задаче