-
Notifications
You must be signed in to change notification settings - Fork 6k
Description
I believe the C# Compiler Options that control compiler output has some errors on it:
There doesn't seem to be a TargetType
property available, or if it does it neither auto-completes in Visual Studio nor affects a build's output type. There IS however the property OutputType
, which can be set to the same values as listed here under the section TargetType.
For OutputAssembly
: I believe this is referring to the properties OutputPath
and AssemblyName
. As well, the example does not indicate that a trailing slash is needed after the folder name.
The document also has "Specify the full name and extension of the file you want to create". However, it's unclear whether this simply means the base file name or the fully qualified filename. I suspect this is meant to simply be "the name and extension of the file". I think the documentation should indicate whether or not the "folder" can be relative.
There might be other documentation in this set that should be updated. For example, the document MainEntryPoint
or StartupObject
references a MainEntryPoint
property which does not seem to work or exist. It also incorrectly states that StartupObject
must be a fully qualified class name.
I hope I didn't read this entire section incorrectly. But I think the issues stem from compiler options that are either not directly available through or have a different name than project file properties.
Thanks!
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
- ID: 614b85b3-e5d8-f262-da76-0d5ca4f011c1
- Version Independent ID: 2ed7567a-6c73-1ac0-033a-ee311f16515b
- Content: C# Compiler Options - Output options
- Content Source: docs/csharp/language-reference/compiler-options/output.md
- Product: dotnet-csharp
- Technology: csharp-language-reference
- GitHub Login: @BillWagner
- Microsoft Alias: wiwagn
Metadata
Metadata
Assignees
Labels
Type
Projects
Status