dotnet / dotnet/sdk

program not running

Open
#55,686 1 comment 0 reactions 0 assignees View on GitHub
needs-info untriaged
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

Warning: 'Program.cs' appears to be a file-based app but was passed as an argument to the project 'C:\Users\User\vscode\myfirstconsoleapp\myfirstconsoleapp.csproj'. To run it as a file-based app, use 'dotnet run --file Program.cs'. To pass it as an application argument, use 'dotnet run -- Program.cs' to suppress this warning.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the reported dotnet run invocation with Program.cs and the referenced myfirstconsoleapp.csproj, then trace how the CLI distinguishes file-based apps from application arguments. Done means explaining or correcting the reported behavior so the program runs as intended without the unexpected warning, with a regression test if the repository has one.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.