Skip to content

Wrong type of value in example of MSBuild ErrorEndLocation property in C# compiler options #27368

Closed

Description

@KalleOlaviNiemitalo

https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-options/advanced#errorendlocation shows the syntax as:

<ErrorEndLocation>filename</ErrorEndLocation>

However, the property actually expects a Boolean value like true, not a file name. See https://github.com/dotnet/roslyn/blob/1deafee3682da88bf07d1c18521a99f47446cee8/src/Compilers/Core/MSBuildTask/Microsoft.CSharp.Core.targets#L80 and https://github.com/dotnet/roslyn/blob/1deafee3682da88bf07d1c18521a99f47446cee8/src/Compilers/Core/MSBuildTask/Csc.cs#L73-L77.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Activity

  1. changed the title [-]Wrong type of value in example of MSBuild ErrorEndLocation property used by Roslyn Csc task[/-] [+]Wrong type of value in example of MSBuild ErrorEndLocation property in C# compiler options[/+] on Dec 2, 2021
  2. added a commit that references this issue on Dec 2, 2021
    a88fba7
  3. BillWagner commented on Dec 2, 2021

    @BillWagner
    Member

    Thanks for noting this @KalleOlaviNiemitalo

    I've opened a PR to address this issue.

  4. added a commit that references this issue on Dec 3, 2021
    9e7d52e
  5. added
    ⌚ Not Triaged
    and removed
    ⌚ Not Triaged
    on Dec 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions