Not able to install .Net Core 3

Installing .NET Core
export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 export DOTNET_CLI_TELEMETRY_OPTOUT=1
25.31s0.46sE: Unable to locate package dotnet-sdk-3.0
E: Couldn’t find any package by glob ‘dotnet-sdk-3.0’
E: Couldn’t find any package by regex ‘dotnet-sdk-3.0’
The command “sudo apt-get install -qq dotnet-sdk-3.0=3.0.0*” failed and exited with 100 during .
Your build has been stopped.

.travis.yml

language: csharp
dist: trusty
sudo: required
mono: none
dotnet: 3.0.0
script:
  - ./build.sh --quiet verify

build.sh

#!/usr/bin/env bash

dotnet restore && dotnet build

@joshua-anderson @akoeplinger

Please link to the build in question. Copypasting things gives incomplete information.

Oh sorry, I didn’t know I could do that.

https://travis-ci.org/Programazing/Shoebox

dotnet-sdk-3.0 is not available for Trusty (presumably because it’s EOL): https://packages.microsoft.com/ubuntu/14.04/prod/dists/trusty/main/binary-amd64/Packages

Move to dist: xenial (which is the default so you can just omit it) or dist: bionic.

Thanks!

It’s installing .Net Core 3.0 but it seems to fail when running dotnet build and I’m not sure why.

https://travis-ci.org/Programazing/Shoebox/builds/600547464

Perhaps because it cannot find your project files since they are in a subdirectory. You also probably don’t need the custom build script.

See https://docs.travis-ci.com/user/languages/csharp/.

You’re right, I didn’t even think about that

Imprint