Allow for "dotnet run" directives
As of SDK 10.0, the dotnet run command supports "file based apps". Currently, only C# is supported. A prerequisite for F# support is that the compiler ignores the "dotnet run" directives, which are source code lines that start with #:.
So, I propose we make the F# compiler ignore lines that start with #: so that eventually dotnet run app.fs can be implemented.
Affidavit
-
[X] This is not a question (e.g. like one you might ask on StackOverflow) and I have searched StackOverflow for discussions of this issue
-
[X] This is a language change and not purely a tooling change (e.g. compiler bug, editor support, warning/error messages, new warning, non-breaking optimisation) belonging to the compiler and tooling repository
-
[X] This is not something which has obviously "already been decided" in previous versions of F#. If you're questioning a fundamental design decision that has obviously already been taken (e.g. "Make F# untyped") then please don't submit it
-
[X] I have searched both open and closed suggestions on this site and believe this is not a duplicate
-
[X] This is not a breaking change to the F# language design
-
[X] I or my company would be willing to help implement and/or test this
For Readers
If you would like to see this issue implemented, please click the :+1: emoji on this issue. These counts are used to generally order the suggestions by engagement.