StartupObject is difficult to find
- Dominant language
- No language data
- Stars
- 4.8k
- Forks
- 6.1k
- Avg merge
- 15h 21m
- Merged PRs (30d)
- 370
Description
This is partially or entirely an SEO issue.
I was ignoring non-Learn results. I just noticed I was using Bing. You could repeat in Google.
This is partially or entirely an SEO issue. I searched for the following and found nothing useful on the first page.:
- msbuild properties learn
- c# build options
- c# entry point
I created a project in VS, and set this value. This is non-trivial and requires understanding of Program and renaming it to something else, as at least in some cases, Program does not appear in VS. This route would not be available to new programmers. With this knowledge, I did the following:
- c# startup object learn (nothing. The concept alone is not enough)
- c# startupobject learn
- c# startupobject
The last two gave this link: https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-options/advanced which has the MainEntryPoint, StartupObject first. I think it is opening to the article top,
I disagree that this is an advanced scenario, but that is minor if the reader can find it. Also minor, I think it is opening to the article top.
Check if it's just me, but I call this the entry point, and if I do not think in OO terms, I would expect it to be a method. As it is, it is a type. So, the name is not going to help everyone.
---
#### Document Details
⚠ *Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.*
* ID: 0db1080c-bbc9-5c15-dea7-cf3c5638ea00
* Version Independent ID: 6a993c1e-13a2-c354-5d3d-4e9d401781b9
* Content: [C# Compiler Options - advanced scenarios](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-options/advanced#mainentrypoint-or-startupobject)
* Content Source: [docs/csharp/language-reference/compiler-options/advanced.md](https://github.com/dotnet/docs/blob/main/docs/csharp/language-reference/compiler-options/advanced.md)
* Product: **dotnet-csharp**
* Technology: **csharp-language-reference**
* GitHub Login: @BillWagner
* Microsoft Alias: **wiwagn**
Contributor guide
Assessment
This issue has not been assessed yet.