docs
docs copied to clipboard
Prefer `dotnet file.cs` over `dotnet run file.cs`
Type of issue
Outdated article
Description
See https://github.com/dotnet/docs/pull/50122#issuecomment-3602334874
Since this tutorial was written, the SDK added dotnet <file> as a shorthand form to run a file based app. Our docs should prefer that form.
There are other instances of the earlier syntax in multiple locations in the docset.
Page URL
https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/tutorials/file-based-programs?branch=pr-en-us-50122
Content source URL
https://github.com/dotnet/docs/blob/main/docs/csharp/fundamentals/tutorials/file-based-programs.md
Document Version Independent Id
5d2e4e0a-1459-30fa-2cf2-c084fd0c1d7a
Platform Id
53517a1b-9565-96fa-097a-11f9b2ed11a5
Article author
@BillWagner
Metadata
- ID: e66a6454-ca58-7601-de19-3b2b65c0d298
- PlatformId: 53517a1b-9565-96fa-097a-11f9b2ed11a5
- Service: dotnet-csharp
- Sub-service: fundamentals