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.

This extension requires .NET Core for full functionality, but we were unable to download and install a local copy for the extension.

See original GitHub issue

Does this occur consistently? Yes Repro steps:

  1. Open code and the following occurs
  2. I have runtime 2.2.5 installed and extension does not find it.
  3. I copy the dotnet 2.2.5 files from the system installed folder into the extensions folder and it deletes them.

Action: acquireDotnet Error type: 1 Error Message: >>>> This extension requires .NET Core for full functionality, but we were unable to download and install a local copy for the extension. If this error persists, please see https://aka.ms/vscode-armtools-dotnet for troubleshooting tips. Command failed: “c:\Users\Developer.vscode\extensions\msazurermtools.azurerm-vscode-tools-0.8.3\assets\install scripts\dotnet-install.cmd” -InstallDir ‘c:\Users\Developer\AppData\Roaming\Code\User\globalStorage\msazurermtools.azurerm-vscode-tools.dotnet\2.2.5’ -Runtime dotnet -Version 2.2.5 Could not find/download: “.NET Core Runtime” with version = 2.2.5 Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET Core support At C:\Users\Developer.vscode\extensions\msazurermtools.azurerm-vscode-tools-0.8.3\assets\install scripts\dotnet-install.ps1:633 char:5

  • throw "Could not find/download: `"$assetName`" with version = $Sp ...
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : OperationStopped: (Could not find/…ET Core support:String) [], RuntimeException
    • FullyQualifiedErrorId : Could not find/download: “.NET Core Runtime” with version = 2.2.5 Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET Core support

Version: 0.8.3 OS: win32 OS Release: 10.0.14393 Product: Visual Studio Code Product Version: 1.41.1 Language: en

Call Stack
ChildProcess.exithandler child_process.js:303:12
ChildProcess.emit events.js:200:13
maybeClose child_process.js:1021:16
Process.ChildProcess._handle.onexit child_process.js:283:5
dotnetAcquireLog
Status bar: $(cloud-download) Downloading .NET Core tooling...
Status bar: $(alert) Error acquiring .NET Core tooling!

[dotnet 2.2.5]: Found an incompletely-installed version of dotnet 2.2.5... Uninstalling.
[dotnet 2.2.5]: Uninstalling dotnet version 2.2.5
[dotnet 2.2.5]: Removing folder c:\Users\Developer\AppData\Roaming\Code\User\globalStorage\msazurermtools.azurerm-vscode-tools\.dotnet\2.2.5
[dotnet 2.2.5]: Finished removing folder c:\Users\Developer\AppData\Roaming\Code\User\globalStorage\msazurermtools.azurerm-vscode-tools\.dotnet\2.2.5
[dotnet 2.2.5]: Finished uninstalling dotnet version 2.2.5
Using this command to install .NET Core version 2.2.5:
"c:\Users\Developer\.vscode\extensions\msazurermtools.azurerm-vscode-tools-0.8.3\assets\install scripts\dotnet-install.cmd" -InstallDir 'c:\Users\Developer\AppData\Roaming\Code\User\globalStorage\msazurermtools.azurerm-vscode-tools\.dotnet\2.2.5' -Runtime dotnet -Version 2.2.5
Downloading .NET Core tooling version(s) 2.2.5.......[dotnet 2.2.5]: dotnet-install: Downloading link: https://dotnetcli.azureedge.net/dotnet/Runtime/2.2.5/dotnet-runtime-2.2.5-win-x64.zip
dotnet-install: Cannot download: https://dotnetcli.azureedge.net/dotnet/Runtime/2.2.5/dotnet-runtime-2.2.5-win-x64.zip
dotnet-install: Downloading legacy link: https://dotnetcli.azureedge.net/dotnet/Runtime/2.2.5/dotnet-win-x64.2.2.5.zip
dotnet-install: Cannot download: https://dotnetcli.azureedge.net/dotnet/Runtime/2.2.5/dotnet-win-x64.2.2.5.zip

[dotnet 2.2.5]: STDERR: Could not find/download: ".NET Core Runtime" with version = 2.2.5
Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET Core support
At C:\Users\Developer\.vscode\extensions\msazurermtools.azurerm-vscode-tools-0.8.3\assets\install scripts\dotnet-install.ps1:633 char:5
+     throw "Could not find/download: `"$assetName`" with version = $Sp ...
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Could not find/...ET Core support:String) [], RuntimeException
    + FullyQualifiedErrorId : Could not find/download: ".NET Core Runtime" with version = 2.2.5
Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET Core support
 

 Error!
Failed to download .NET Core tooling 2.2.5:
Exit code: 1
Message: Command failed: "c:\Users\Developer\.vscode\extensions\msazurermtools.azurerm-vscode-tools-0.8.3\assets\install scripts\dotnet-install.cmd" -InstallDir 'c:\Users\Developer\AppData\Roaming\Code\User\globalStorage\msazurermtools.azurerm-vscode-tools\.dotnet\2.2.5' -Runtime dotnet -Version 2.2.5
Could not find/download: ".NET Core Runtime" with version = 2.2.5
Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET Core support
At C:\Users\Developer\.vscode\extensions\msazurermtools.azurerm-vscode-tools-0.8.3\assets\install scripts\dotnet-install.ps1:633 char:5
+     throw "Could not find/download: `"$assetName`" with version = $Sp ...
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Could not find/...ET Core support:String) [], RuntimeException
    + FullyQualifiedErrorId : Could not find/download: ".NET Core Runtime" with version = 2.2.5
Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET Core support
 



Issue Analytics

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

github_iconTop GitHub Comments

1reaction
StephenWeatherfordcommented, Feb 4, 2020

@leparduk Generally the error “Could not find/download” generally means that you were offline or it couldn’t reach the dotnet website. Could you try again when you know you’re online? Thanks!

See https://github.com/microsoft/vscode-azurearmtools/wiki/Troubleshooting-DotNet-Acquisition#could-not-finddownload-net-core-runtime-with-version--225 for more info.

0reactions
vscodebot[bot]commented, Feb 26, 2020

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

Read more comments on GitHub >

github_iconTop Results From Across the Web

The .NET Core SDK cannot be located. .NET Core debugging ...
Just simply close your VS Code app. It seems the error is produced because you are installing .NET Core SDK when your VS...
Read more >
How to install and manage Azure CLI extensions
Learn how to find, install, uninstall, and manage extensions with Azure CLI. Use the Azure CLI to load extensions provided and maintained by ......
Read more >
User and Workspace Settings - Visual Studio Code
In general, VS Code extensions store their settings in your user or workspaces settings files and they are available through the Settings editor...
Read more >
Deploying an ASP.NET core application with Elastic Beanstalk
NET Core command line application, install dependencies, compile code, and run applications locally. Next, you will create the default Program.cs class, ...
Read more >
.NET core vs .NET framework - Stackify
For example, Entity Framework Core is not the exact same as Entity Framework v6; You need to access Windows-specific APIs – If your...
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