Unable to use .Net 6.0 preview
See original GitHub issueDescription:
I’m trying to update my project with the preview version of .NET 6, but when I try to set the version on setup-dotnet
to 6 it doesn’t find the version to download.
Task version:
actions/setup-dotnet@v1
Platform:
- Ubuntu
- macOS
- Windows
Runner type:
- Hosted
- Self-hosted
Repro steps:
My repo is private, but to reproduce just need to set the version to 6.0.0
or 6.0.0-preview.1
Expected behavior: It should download the sdk and setup all the env.
Actual behavior: It doesn’t find the preview, and show this error:
dotnet-install: Downloading link: https://dotnetcli.azureedge.net/dotnet/Sdk/6.0.0-preview/dotnet-sdk-6.0.0-preview-linux-x64.tar.gz
curl: (22) The requested URL returned error: 404
dotnet-install: Cannot download: https://dotnetcli.azureedge.net/dotnet/Sdk/6.0.0-preview/dotnet-sdk-6.0.0-preview-linux-x64.tar.gz
dotnet-install: Downloading legacy link: https://dotnetcli.azureedge.net/dotnet/Sdk/6.0.0-preview/dotnet-dev-ubuntu.18.04-x64.6.0.0-preview.tar.gz
curl: (22) The requested URL returned error: 404
dotnet-install: Cannot download: https://dotnetcli.azureedge.net/dotnet/Sdk/6.0.0-preview/dotnet-dev-ubuntu.18.04-x64.6.0.0-preview.tar.gz
dotnet_install: Error: Could not find/download: `.NET Core SDK` with version = 6.0.0-preview
dotnet_install: Error: Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET Core support
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:8 (2 by maintainers)
Top Results From Across the Web
How to target .NET 6.0 with Visual Studio 2019? - Microsoft Q&A
Under Options, Environment, Preview Features set Use previews of the .NET SDK to true, restart Visual Studio. Restart, in a Visual Studio ...
Read more >Getting Setup With .NET 6 Preview -.NET Core Tutorials
Go Tools -> Options, then select Preview Features as per the screenshot below. Make sure to tick the “Use previews of the .NET...
Read more >Visual Studio 2019 Not Showing .NET 6 Framework
As for dropdown - it seems that there is some bug in VS - I have 16.11.5 installed alongside VS 2022 preview and...
Read more >VS2022 Preview 6.0 -- Downgrading a .NET 6.0 project to 5.0 ...
Close VS and VS with safe mode: open CMD and go to C:\Program Files\Microsoft Visual Studio\2022\version name\Common7\IDE folder, run the command: devenv / ......
Read more >.NET 6 and M1 problems when other SDKs are present in the ...
If you have M1 Apple device and both .NET 6 and .NET 5 (or .NET Core 3.1) SDKs installed on it, it means...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
v1.8.0 has been released which includes #110. Should resolve this by simply doing:
For preview 2, specifying the
dotnet-version
to be6.0.100-preview.2.21155.3
worked for me.For any version, it’s the sdk version from the release metadata.