Skip to content

Possibly Incorrect Names for C# Compiler Options #35950

@zacharylayne

Description

@zacharylayne

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.


Associated WorkItem - 479050

Metadata

Metadata

Labels

📌 seQUESTeredIdentifies that an issue has been imported into Quest.dotnet-csharp/svcin-prThis issue will be closed (fixed) by an active pull request.lang-reference/subsvcokr-qualityContent-quality KR: Concerns article defects (bugs), freshness, or build warnings.

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions