Skip to content

Support piping code directly into dotnet run via stdin #49201

@DamianEdwards

Description

@DamianEdwards

We should consider accepting the C# code from stdin to dotnet run as an alternate way to run a file-based app, e.g.:

> 'Console.WriteLine("Hello, World!");' | dotnet run -
Hello, World!
> 
> curl -S http://superawesome-trustedwebsite.com/install | dotnet run -
Installing super awesome tool.... done!
> 

Metadata

Metadata

Assignees

Labels

Area-run-fileItems related to the "dotnet run <file>" effort

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions