Update dotnet-install.ps1 to download 2.0.* versions of ASP.NET runtime
See original GitHub issueThere are several versions of the ASP.NET 2.0 runtime available on the .NET downloads page. Unfortunately, dotnet-install.ps1
fails to download any of them. I would expect that dotnet-install.ps1
can install any version available on the downloads page.
We have a deployment process that downloads and installs the version of .NET Core an apps needs. With the current version of the script, we can only 2.1.* versions and are dev teams aren’t ready to start using 2.1
Steps to reproduce
# These are all the 2.0.* versions of ASP.NET available on the downloads page.
foreach( $version in @( '2.0.3','2.0.5','2.0.6','2.0.7','2.0.8') )
{
$installDir = Join-Path -Path $env:TEMP -ChildPath ('aspnetcore-{0}' -f $version)
try
{
.\dotnet-install.ps1 -Version $version -Runtime 'aspnetcore' -InstallDir $installDir -NoPath -ErrorAction Continue
Write-Host ('Successfully downloaded ASP.NET Core {0}.' -f $version) -ForegroundColor Green
}
catch
{
Write-Error -ErrorRecord $_
}
}
Expected behavior
I expect that all versions of ASP.NET available on the downloads page would be download-able by dotnet-install.ps1
.
Actual behavior
The dotnet-install.ps1
script throws a terminating exception when attempting to download any 2.0.*
version.
Environment data
dotnet --info
output:
n/a
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
dotnet-install scripts - .NET CLI
Install the latest long-term supported (LTS) version to the default location: Windows: PowerShell. Copy ./dotnet-install.ps1 -Channel LTS.
Read more >Command line to install/upgrade .NET Core
Are there command line commands to install or upgrade .NET Core? I checked to see if I had .NET Core was installed on...
Read more >Microsoft.CodeDom.Providers.DotNetCompilerPlatform 4.1.0
NET Compiler Platform ("Roslyn") compiler as a service APIs. This provides support for new language features in systems using CodeDOM (e.g. ASP.NET runtime....
Read more >Untitled
Dotnet install ps WebWith one download, the .NET Coding Pack gives you everything you need to get started coding with C#. The pack...
Read more >Getting started with .NET on RHEL 8 .NET 6.0
You can install the .NET 6.0 runtime with the latest 6.0 Software Development Kit (SDK). ... Installed and registered RHEL 8 with attached...
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
Yes. We could retroactively find the 2.0.x bits and put them in to dotnetcli blob storage in a format consumable by the script.
At this point, we are no longer servicing .NET Core 2.0. I’m closing this as ‘wontfix’ and recommend updating to .NET Core 2.1 or 2.2 which as a fix for this issue.