@Bruce Phillips To resolve this issue, you can try specifying the .NET SDK version in your project file. You can do this by adding a global.json
file to the root of your project with the following contents:
{
"sdk": {
"version": "8.0.303"
}
}
This will tell Azure to use the .NET SDK version 8.0.303 when building your project.
Alternatively, you can try specifying the .NET SDK version in your deployment script. You can do this by adding the following command to your deployment script:
export DOTNET_ROOT=/usr/share/dotnet
export PATH=$PATH:$DOTNET_ROOT
export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
export DOTNET_CLI_TELEMETRY_OPTOUT=1
export DOTNET_SDK_VERSION=8.0.303
dotnet build
This will set the DOTNET_SDK_VERSION
environment variable to 8.0.303 and use that version of the .NET SDK when building your project.