You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentation/general/dotnet-run-file.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -71,7 +71,7 @@ Internally, the SDK CLI detects entry points by parsing all `.cs` files in the d
71
71
and checking which ones contain top-level statements (`Main` methods are not supported for now as that would require full semantic analysis, not just parsing).
72
72
Results of this detection are used to exclude other entry points from [builds](#multiple-entry-points) and [app directive collection](#directives-for-project-metadata).
73
73
This means the CLI might consider a file to be an entry point which later the compiler doesn't
74
-
(for example because its top-level statements are under `#if SYMBOL` and the build has `DefineConstants=SYMBOL`).
74
+
(for example because its top-level statements are under `#if !SYMBOL` and the build has `DefineConstants=SYMBOL`).
75
75
However such inconsistencies should be rare and hence that is a better trade off than letting the compiler decide which files are entry points
76
76
because that could require multiple builds (first determine entry points and then re-build with app directives except those from other entry points).
77
77
To avoid parsing all C# files twice (in CLI and in the compiler), the CLI could use the compiler server for parsing so the trees are reused
0 commit comments