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.

dotnet-install.sh Installs wrong version of the RC1 runtime causing Build failures

See original GitHub issue

We are using the obtain script dotnet-install.sh to install dotnetcore in CodeShip CI. However, this script installs the wrong version of the runtime when pointing to rc1.

We then see build errors such as error NU1102: Unable to find package Microsoft.NETCore.App with version (>= 2.1.0-rc1-26428-03)

Steps to reproduce

curl -Lsfo ./dotnet-install.sh https://dot.net/v1/dotnet-install.sh ./dotnet-install.sh --verbose --version 2.1.300-rc1-008673 dotnet --info

Expected behavior

Following would be installed Microsoft.AspNetCore.App 2.1.0-rc1-final Microsoft.NETCore.App 2.1.0-rc1

Actual behavior

Following are installed: Microsoft.AspNetCore.App 2.1.0-rc1-30682 Microsoft.NETCore.App 2.1.0-rc1-26428-03

Environment data

dotnet --info output:

.NET CLI version info:
.NET Core SDK (reflecting any global.json):
Version:   2.1.300-rc1-008673
Commit:    f5e3ddbe73

Runtime Environment:
OS Name:     ubuntu
OS Version:  14.04
OS Platform: Linux
RID:         ubuntu.14.04-x64
Base Path:   /home/rof/cache/.dotnet/sdk/2.1.300-rc1-008673/

Host (useful for support):
Version: 2.1.0-rc1-26428-03
Commit:  2c36b039fd

.NET Core SDKs installed:
2.1.300-rc1-008673 [/home/rof/cache/.dotnet/sdk]

.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.1.0-rc1-30682 [/home/rof/cache/.dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.0-rc1-30682 [/home/rof/cache/.dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.0-rc1-26428-03 [/home/rof/cache/.dotnet/shared/Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
parekhkbcommented, May 9, 2018

@livarcocc Thanks! Until the CDN is flushed I will use the following for now. I tested it and it worked. ./dotnet-install.sh --version 2.1.300-rc1-008673 --azure-feed https://dotnetcli.blob.core.windows.net/dotnet

0reactions
parekhkbcommented, May 9, 2018

A few hours later it’s installing the wrong build again. Seems the CDNs aren’t completely flushed…

Read more comments on GitHub >

github_iconTop Results From Across the Web

dotnet-install.sh Installs wrong version of the RC1 runtime ...
We are using the obtain script dotnet-install.sh to install dotnetcore in CodeShip CI. However, this script installs the wrong version of ...
Read more >
Cannot install dotnet-ef tool on Windows 10
I gives me the following error: The tool package could not be restored. Tool 'dotnet-ef' failed to install. This failure may have been...
Read more >
dotnet-install scripts - .NET CLI
The dotnet-install scripts perform a non-admin installation of the .NET SDK, which includes the .NET CLI and the shared runtime.
Read more >
0
Build ASP.NET Core from Source, restore.cmd/sh fails, dotnet-install cannot download "servicing" versions · I filed an issue on github as well: ...
Read more >
Troubleshoot .NET tool usage issues
NET tool fails to run, most likely you ran into one of the following issues: The executable file for the tool wasn't found....
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