Skip to content

[Bug]: Build-breaking XAML errors are published as Warnings #355

Open

Description

Describe the bug

21 constructs that fail the build are reported with severity Warning, so winapp.xaml.diagnostics.level = errorsOnly hides them. For example, an unknown type is an Error but an unknown property is a Warning.

To Reproduce

  1. Set winapp.xaml.diagnostics.level to errorsOnly.
  2. Add <Button Foo="1"/>, Grid.Foo="1" or {x:Bind ViewModel.Nope} to a page.
  3. No diagnostic is shown; dotnet build fails (WMC0011, WMC0010, ...).

Expected behavior

Conditions that fail the build are reported as Errors.

Notes

Bug bash ID: C-17.

Screenshots

No response

OS Version and details

Windows 11 x64 (10.0.26200), VS Code 1.143.1, .NET SDK 10.0.403. Found in the XAML IntelliSense bug bash on 0.3.1-prerelease.456 (PR #276, f90df977).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugintellisense

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions