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.

Configure.PS1 fails installing .NET CLI

See original GitHub issue

Copied from https://github.com/NuGet/Home/issues/6049

After cloning the NuGet.Client repo and following the instructions to configure for a build. Configure.PS1 fails when attempting to download the .NET CLI. The output from the Powershell console is below:

`PS D:\Reference Source\Microsoft\nuget\nuget.client> .\configure.ps1 [17:10:09 +0] Configuring NuGet.Client build environment [17:10:09 +0] [BEGIN] Configuring git repo [17:10:09 +0] [DONE +00:00:00] Configuring git repo [17:10:09 +0] [BEGIN] Installing NuGet.exe NuGet Version: 4.0.0.2283 http-cache: C:\Users\spmys\AppData\Local\NuGet\v3-cache global-packages: C:\Users\spmys.nuget\packages temp: C:\Users\spmys\AppData\Local\Temp\NuGetScratch [17:10:09 +0] [DONE +00:00:00] Installing NuGet.exe [17:10:09 +0] [BEGIN] Installing .NET CLI .NET Command Line Tools (1.0.1)

Product Information: Version: 1.0.1 Commit SHA-1 hash: 005db40cd1

Runtime Environment: OS Name: Windows OS Version: 6.1.7601 OS Platform: Windows RID: win7-x64 Base Path: D:\Reference Source\Microsoft\nuget\nuget.client\cli1.0.4\sdk\1.0.1 [17:10:10 +0] Downloading .NET CLI Error-Log : [17:10:13 +3] [FAILED +00:00:03] Installing .NET CLI At D:\Reference Source\Microsoft\nuget\nuget.client\build\common.ps1:142 char:17

… Error-Log "[FAILED +$(Format-ElapsedTime $sw.Elapsed)] $B … ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CategoryInfo : NotSpecified: (😃 [Write-Error], WriteErrorException FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Error-Log Exception calling “Invoke” with “0” argument(s): “Failed to download https://dotnetcli.blob.core.windows.net/dotnet/Sdk/2.0/latest.version.” At D:\Reference Source\Microsoft\nuget\nuget.client\cli\dotnet-install.ps1:106 char:20

    return $ScriptBlock.Invoke()
           ~~~~~~~~~~~~~~~~~~~~~

CategoryInfo : NotSpecified: (😃 [], ParentContainsErrorRecordException FullyQualifiedErrorId : RuntimeException PS D:\Reference Source\Microsoft\nuget\nuget.client>`

Any thoughts on what the issue is and how to resolve it?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
livarcocccommented, Oct 19, 2017

@johnbeisner this is happening because @mhsimkin company is blocking the URL. Nothing wrong with our scripts.

@mhsimkin I am not sure enabling a http URL option is the right approach here. Can’t you just ask to have that URL enabled for https?

0reactions
johnbeisnercommented, Oct 19, 2017

closing…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configure.PS1 fails installing .NET CLI · Issue #8808
I went to the the DotNet Core archive page to download the SDK to install it, just to make sure there where no...
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 >
[SOLVED] Need help with .net install with powershell.
I am working on setting up an automated installation of a web server from a base template.(Windows Server 2016). When installing .net core ......
Read more >
Install .NET on Linux without using a package manager
Demonstrates how to install the .NET SDK and the .NET Runtime on Linux without a package manager. Use the install script or manually...
Read more >
dotnet is not recognized as the name of a cmdlet
Net Core is not installed on your machine. To verify it, please run the command dotnet --help from Windows PowerShell or VS Code...
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