Skip to content

dotnet watch Console.ReadLine() does not read first key stroke #25961

@anil-shrestha

Description

@anil-shrestha

Description

Simple program below, takes input using console readline

Console.Write("Enter your name: ");
var input = Console.ReadLine();
Console.WriteLine($"Hello {input}");

run it with
dotnet watch

start typing your input. the first character is not read at all

Configuration

dotnet --version
6.0.202
Windows 10 21H2 x64

Regression?

Other information

trying to input john as input
dotnet watch
watch : Started
Enter your name: ohn
Hello ohn
watch : Exited

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions