Skip to content

Commit 89208b3

Browse files
sputierRon Petrusha
authored andcommitted
The -main compiler switch accepts a fully qualified class name as a parameter (#6498)
* The -main compiler switch accepts a fully qualified class name as a parameter * Update main-compiler-option.md
1 parent 0b9ad93 commit 89208b3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/csharp/language-reference/compiler-options/main-compiler-option.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ This option specifies the class that contains the entry point to the program, if
2121
## Arguments
2222
`class`
2323
The type that contains the **Main** method.
24+
The provided class name must be fully qualified; it must include the full namespace containing the class, followed by the class name. For example, when the `Main` method is located inside the `Program` class in the `MyApplication.Core` namespace, the compiler option has to be `-main:MyApplication.Core.Program`.
2425

2526
## Remarks
2627
If your compilation includes more than one type with a [Main](../../../csharp/programming-guide/main-and-command-args/index.md) method, you can specify which type contains the **Main** method that you want to use as the entry point into the program.

0 commit comments

Comments
 (0)