Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/core/sdk/file-based-apps.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ Or use the `dotnet run` command followed by the name of the file:
dotnet run file.cs
```

> [!NOTE]
> When a project file exists in the current working directory, `dotnet run file.cs` without the `--file` option runs that project and passes `file.cs` as an argument to the target app to preserve backwards compatibility.

Or use the shorthand syntax:

```dotnetcli
Expand Down