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 fails with windowsdesktop shared runtime

See original GitHub issue

As per the documentation, I should be able to download a specific windows desktop runtime version using this command:

.\dotnet-install.ps1 -Version 5.0.0-alpha.1.20078.1 -Runtime windowsdesktop -NoPath -SkipNonVersionedFiles -InstallDir C:\Users\Administrator\AppData\Local\Temp\benchmarks-server-2516\wemfckkl.hgg 

An error occurs:

[07:10:56.520] dotnet-install: Downloading link: https://dotnetcli.azureedge.net/dotnet/Runtime/5.0.0-alpha.1.20078.1/windowsdesktop-runtime-5.0.0-alpha.1.20078.1-win-x64.zip
[07:10:58.738] dotnet-install: Cannot download: https://dotnetcli.azureedge.net/dotnet/Runtime/5.0.0-alpha.1.20078.1/windowsdesktop-runtime-5.0.0-alpha.1.20078.1-win-x64.zip
[07:10:58.790] Could not find/download: ".NET Core Windows Desktop Runtime" with version = 5.0.0-alpha.1.20078.1
[07:10:58.790] Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET Core support
[07:10:58.790] At C:\Users\Administrator\AppData\Local\Temp\benchmarks-server-2516\jw0125sx.zuz\dotnet-install.ps1:660 char:5
[07:10:58.790] +     throw "Could not find/download: `"$assetName`" with version = $Sp ...
[07:10:58.790] +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[07:10:58.790]     + CategoryInfo          : OperationStopped: (Could not find/...ET Core support:String) [], RuntimeException
[07:10:58.790]     + FullyQualifiedErrorId : Could not find/download: ".NET Core Windows Desktop Runtime" with version = 5.0.0-alpha.
[07:10:58.790]    1.20078.1
[07:10:58.790] Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET Core support

And I verified that the version exists from the feed: https://dotnetfeed.blob.core.windows.net/dotnet-core/flatcontainer/microsoft.windowsdesktop.app/index.json

This is blocking aspnet benchmarks on Windows

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:18 (15 by maintainers)

github_iconTop GitHub Comments

2reactions
nguerreracommented, Feb 11, 2020

I wonder if it wouldn’t be easier to copy the WindowsDesktop builds from 3.0/3.1 from Runtime to WindowsDesktop instead of making this script ever more complicated?

0reactions
sebastienroscommented, Feb 12, 2020

I needed that for a previous version, before FrameworkReference was created, but until now it never conflicted so I just kept it as my app target all TFMs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Install .NET on Windows
In this article, you'll learn how to install .NET on Windows. .NET is made up of the runtime and the SDK. The runtime...
Read more >
Getting the .NET Desktop Runtime Installed with a Custom ...
I'm in the process of updating the next version of Markdown Monster to run under .NET Core using .NET 7.0.
Read more >
"You must install .NET Desktop Runtime 6.0.4 (x64)" error
NET SDKs installed: No SDKs were found. .NET runtimes installed: Microsoft.NETCore.App 6.0.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.
Read more >
You must install .NET Desktop Runtime to run this application ...
NET 6.0.15 Desktop Runtime Windows x64 Installer In this video, you will learn about how to fix the problem of handbrake, "You must...
Read more >
Cannot install dotnet-ef tool on Windows 10
I got it working by adding the --version flag and specifying the version to 3.0.0 . The command that I used: dotnet tool...
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