question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to use .Net 6.0 preview

See original GitHub issue

Description: 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:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

11reactions
GGG-KILLERcommented, May 6, 2021

v1.8.0 has been released which includes #110. Should resolve this by simply doing:

    - name: Install .NET Core
      uses: actions/setup-dotnet@v1
      with:
        dotnet-version: '6.0'
        include-prerelease: True
6reactions
JeroenBoscommented, Mar 30, 2021

For preview 2, specifying the dotnet-version to be 6.0.100-preview.2.21155.3 worked for me.

For any version, it’s the sdk version from the release metadata.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found