Travis unable the Dot-Net SDK

When I do a build I get:

      Installing .NET Core
    $ export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
    $ export DOTNET_CLI_TELEMETRY_OPTOUT=1
    12.65s0.32sE: Unable to locate package dotnet-sdk-8.0
    E: Couldn't find any package by glob 'dotnet-sdk-8.0'
    E: Couldn't find any package by regex 'dotnet-sdk-8.0'
    The command "sudo apt-get install -qq dotnet-sdk-8.0=8.0.203*" failed and exited with 100 during .

Hi @Gexny,

You can use this workaround:

language: generic
sudo: required
dist: focal

before_script:
  - sudo snap install dotnet-sdk --classic --channel 8.0/stable

This should get you going.

1 Like

this was it! thanks @Montana

Awesome,

Glad I could help!