dotnet / dotnet/command-line-api

Invoke/InvokeAsync hangs while debugging until VS restart

Open
#832 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
3.7k
Forks
428
PR merge metrics
No merged PRs in 30d

Description

I noticed while testing my console application that at some point after starting/stopping debugging, the InvokeAsync and Invoke methods hanged and never returned, this kept happening after that time all the time until I finally restarted Visual Studio then the problem disappeared.

Unfortunately I don't have any steps to reproduce this issue, don't have any stack traces, and it hasn't happened in a while anymore, but thought it might still be a good idea to open an issue about it.

The call:
`return await rootCommand.InvokeAsync(args);`

Thank you for this library! Can't wait for a documented and stable version :)

EDIT: If I recall correctly, the version of VS I was using at the time was 16.4.x (sorry don't remember, should have opened an issue right there and then!)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.