-
Notifications
You must be signed in to change notification settings - Fork 6k
Reimagine C# compiler options section #22797
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reimagine C# compiler options section #22797
Conversation
2a4332c
to
cd1c14d
Compare
a641103
to
7935982
Compare
ed6d700
to
a1893c5
Compare
362551e
to
522f35d
Compare
6a63eaa
to
8934ac6
Compare
Move all information pertaining to how to set compiler options into the index topic for this section. fix markdown lint warning
remove links to old content
Update listed-by-category.md
2nd pass through security.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work -- This was a major undertaking and it's a big improvement for this part of the TOC -- easier for readers to browse options and easier for us to maintain them. I have mostly minor style suggestions. I learned some new things reading through all this material. 😄
Co-authored-by: Tom Dykstra <[email protected]>
Co-authored-by: Tom Dykstra <[email protected]>
Co-authored-by: Tom Dykstra <[email protected]>
Co-authored-by: Tom Dykstra <[email protected]>
|
||
An internal compiler error (ICE) results when the compiler can't process a source code file. When an ICE occurs, the compiler doesn't produce an output file or any useful diagnostic that you can use to fix your code. | ||
|
||
By using **ErrorReport**, you can provide ICE information to the C# team. Your error reports can help improve future compiler releases. A user's ability to send reports depends on computer and user policy permissions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't believe the ErrorReport property does what you claim here. Filed #23323 as this PR has already been merged.
}, | ||
{ | ||
"source_path": "docs/csharp/language-reference/compiler-options/refout-compiler-option.md", | ||
"redirect_url": "/dotnet/csharp/language-reference/compiler-options/optimizations" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@BillWagner This doesn't seem to be a valid redirect target. Where should this redirect actually go?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a PR to fix it.
```xml | ||
<ErrorEndLocation>filename</ErrorEndLocation> | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Filed #27368 about filename
.
Fixes dotnet#40355 I also checked other files deleted in dotnet#22797 and nothing else was lost.
Fixes #22659 (for this task)
Currently open issues on the compiler options sections
Fixes #20061
Fixes #20162
Fixes #18371
Fixes #22460
Fixes #6773
Closed as "won't fix" articles on the compiler options sections that were fixed in this PR
Fixes #17370
Fixes #4192
Guidance for reviewers:
The work done here is to consolidate all the compiler options pages into groups. Instead of a single page for each option, this organization groups options by usage. In addition, the existing pages all used the "classic" syntax. The updates focus on the new MSBuild syntax, but provides the csc alternative for existing users and translation to the updated syntax.
This is a large PR, but it's focused in concept. One option is to review it commit by commit. Each of the early commits simplify one section. Later commits fix links to the files that were deleted.
Another option is to review the files by type of change:
Notes on changes:
Most of the changes involved moving content, and trimming that content. In addition old options were translated to the new MSBuild options. There are a few exceptions to this: the
-bugreport
option is no longer supported. Theerrorreport
option should be used instead. Therecurse
option is no longer supported, and was removed. Most links were updated to use the new MSBuild syntax. A couple places that weren't were for compiler errors where the order of the compiler options impacted the error. These links continued to use the old syntax.Review site link This goes to the index for the section with new content.