dotnet-install.sh Installs wrong version of the RC1 runtime causing Build failures
See original GitHub issueWe 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:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top 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 >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
@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
A few hours later it’s installing the wrong build again. Seems the CDNs aren’t completely flushed…