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.

Can't Ctrl-C out of Installing dotnet cli in Windows command prompt hangs

See original GitHub issue

@hughbe commented on Thu Jun 15 2017

Normally I can press Ctrl-C and quit the currently exectuting task in the WIndows command prompt.

However, things seem to jam up and hang if I press control C when installing the dotnet cli.

This is a pain because my slow internet takes upwards of 1 hour to download the CLI, and I also often get errors like these and can’t quit the build…

C:\Users\hugh\Documents\GitHub\corefx>build
C:\Users\hugh\Documents\GitHub\corefx\Tools\net46\GenFacades.Core.dll - Access is denied.
C:\Users\hugh\Documents\GitHub\corefx\Tools\net46\Microsoft.Cci.dll - Access is denied.
C:\Users\hugh\Documents\GitHub\corefx\Tools\net46\Microsoft.Cci.Extensions.dll - Access is denied.
C:\Users\hugh\Documents\GitHub\corefx\Tools\net46\Microsoft.DotNet.Build.Tasks.dll - Access is denied.
C:\Users\hugh\Documents\GitHub\corefx\Tools\net46\Newtonsoft.Json.dll - Access is denied.
C:\Users\hugh\Documents\GitHub\corefx\Tools\net46\NuGet.Common.dll - Access is denied.
C:\Users\hugh\Documents\GitHub\corefx\Tools\net46\NuGet.Packaging.Core.Types.dll - Access is denied.
C:\Users\hugh\Documents\GitHub\corefx\Tools\net46\NuGet.Packaging.dll - Access is denied.
C:\Users\hugh\Documents\GitHub\corefx\Tools\net46\NuGet.ProjectModel.dll - Access is denied.
C:\Users\hugh\Documents\GitHub\corefx\Tools\net46\NuGet.Versioning.dll - Access is denied.
C:\Users\hugh\Documents\GitHub\corefx\Tools\net46\roslyn\tools\Microsoft.Build.Tasks.CodeAnalysis.dll - Access is denied.
C:\Users\hugh\Documents\GitHub\corefx\Tools\net46\System.Diagnostics.TraceSource.dll - Access is denied.
Installing dotnet cli...

@karelz commented on Thu Jun 15 2017

@weshaggard @mellinoe any idea how to route it? This is significantly impacting contributor workflow 😦


@danmosemsft commented on Thu Jun 15 2017

Does Ctrl-Break work? Usually that’s not ignorable, wheras Ctrl-C relies on the app handling it.


@weshaggard commented on Thu Jun 15 2017

Also the access denied part is generally caused because msbuild or VS is holding locking those libraries so they cannot be updated. You generally need to shutdown those processes to unlock those files.


@danmosemsft commented on Fri Jun 16 2017

And VBCSCompiler.exe. Taskkill that, devenv and msbuild…


@hughbe commented on Wed Jun 21 2017

Sorry for the delay answering. I don’t actually have a break key on my laptop - indeed I’ve never actually heard of one before! https://en.wikipedia.org/wiki/Break_key shows some substitute key combinations for dell laptops, but they don’t seem to work either

What I meant about the access denied errors is that if they occur I don’t really want the build to continue, However, I can’t exit the build at this point which is a pain


@ViktorHofer commented on Sun Aug 12 2018

I think we should address this as the “ordinary” dev expects Ctrl + C to just work. I also hit this when I started to work in corefx.


@ViktorHofer commented on Tue Dec 11 2018

Moving to arcade as they are now the owners of the bootstrap script.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
markwilkiecommented, Dec 12, 2018

Arcade isn’t doing much:

function GetDotNetInstallScript([string] $dotnetRoot) {
  $installScript = "$dotnetRoot\dotnet-install.ps1"
  if (!(Test-Path $installScript)) {
    Create-Directory $dotnetRoot
    Invoke-WebRequest "https://dot.net/v1/dotnet-install.ps1" -OutFile $installScript
  }
0reactions
ViktorHofercommented, Jul 22, 2021

@markwilkie afaik this is still an issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows 10 Command Prompt: Running Programs freeze ...
This is a pretty old question but I was having this issue and found the answer: Command prompt hangs until keypress?
Read more >
Ctrl+C doesn't work in cmd.exe
I need a fix. First you right click on the title bar Command prompt, select Properties. Now on the screen appears a new...
Read more >
dotnet commands in cmd freezing. What's wrong?
Let's start with check that dotnet is works fine: Check that dotnet.exe exists at path C:\Program Files\dotnet\
Read more >
glab on WSL hangs on every command (#1336) · Issues
I'm not sure what doesn't finish. Running glab --help for example prints the help, but the prompt will not return and ps shows...
Read more >
Rider stuck on "Restoring packages" after opening solution ...
When I press ctrl-c to try to kill it at the console, I get the message: > "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\ ...
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