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.

Update dotnet-install.ps1 to download 2.0.* versions of ASP.NET runtime

See original GitHub issue

There 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:closed
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
natemcmastercommented, Jun 8, 2018

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.

0reactions
natemcmastercommented, Jan 28, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

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