Run actions/setup-dotnet@v1…
- User
Run actions/setup-dotnet@v1 /home/runner/work/_actions/actions/setup-dotnet/v1/externals/install-dotnet.sh --version 8.1.101 dotnet-install: Note that the intended use of this script is for Continuous Integration (CI) scenarios, where: dotnet-install: - The SDK needs to be installed without user interaction and without admin rights. dotnet-install: - The SDK installation doesn't need to persist across multiple CI runs. dotnet-install: To set up a development environment or to run apps, use installers rather than this script. Visit https://dotnet.microsoft.com/download to get the installer.
dotnet-install: Attempting to download using primary link https://dotnetcli.azureedge.net/dotnet/Sdk/8.1.101/dotnet-sdk-8.1.101-linux-x64.tar.gz curl: (22) The requested URL returned error: 404 dotnet-install: The resource at primary link 'https://dotnetcli.azureedge.net/dotnet/Sdk/8.1.101/dotnet-sdk-8.1.101-linux-x64.tar.gz' is not available. dotnet-install: Attempting to download using primary link https://dotnetbuilds.azureedge.net/public/Sdk/8.1.101/dotnet-sdk-8.1.101-linux-x64.tar.gz curl: (22) The requested URL returned error: 404 dotnet-install: The resource at primary link 'https://dotnetbuilds.azureedge.net/public/Sdk/8.1.101/dotnet-sdk-8.1.101-linux-x64.tar.gz' is not available. dotnet_install: Error: Could not find
.NET Core SDKwith version = 8.1.101 dotnet_install: Error: Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET Core support Error: The process '/home/runner/work/_actions/actions/setup-dotnet/v1/externals/install-dotnet.sh' failed with exit code 1name: .NET Build and Publish
on: push: branches: [ main ] pull_request: branches: [ main ]
jobs: build:
code - Assistant
The error you're encountering indicates that the specified version of the .NET Core SDK (
8.1.101) is not found. This could be due to several reasons, such as a typo in the version number, the version not yet being released, or it not being available in the specified download locations.As of my last update in late 2023, might have been announced, but you need to make sure the version is correct and actually available. Microsoft's versioning for .NET Core SDKs has specific patterns, and it's relatively common to see minor discrepancies in version numbers lead to such errors.