Skip to content

Enable nullable reference types by default [7.1] #9964

Description

@Youssef1313

Currently, the default is that NRT is disabled, and we opt-in the analysis with #nullable enable.

The ask here is to move to NRT enabled by default and opt-out with #nullable disable.

@jeromelaban What do you think?

Activity

  1. added
    difficulty/tbd
    kind/enhancement
    triage/untriaged
    on Sep 26, 2022
  2. jeromelaban commented on Sep 26, 2022

    @jeromelaban
    Member

    This would be the required change indeed. If we do this, we'll have to do it with one PR per project to avoid a very large change.

  3. removed
    triage/untriaged
    on Dec 2, 2022
  4. added
    difficulty/starter 🚀
    area/contributor-experience
    and removed
    difficulty/tbd
    on Aug 16, 2023
  5. github-actions commented on Aug 6, 2025

    @github-actions
    Contributor

    Hey there — just a heads-up that this issue has been quiet for over a year. If there’s no update or comment in the next 10 days, it’ll be closed automatically. Feel free to remove the stale label or drop a note to keep it open.

  6. added
    stale
    on Aug 6, 2025
  7. MartinZikmund commented on Aug 7, 2025

    @MartinZikmund
    Member

    Still relevant

  8. removed
    stale
    on Aug 7, 2025
  9. MartinZikmund commented on Apr 8, 2026

    @MartinZikmund
    Member

    Repro generator

    This issue was classified as not reproducible with a code sample or test.

    Reason: This is a project-wide configuration enhancement (enabling NRT by default), not a runtime bug that can be reproduced with a code sample or test.

  10. changed the title [-]Enable nullable reference types by default[/-] [+]Enable nullable reference types by default [7.0 ][/+] on Aug 9, 2026
  11. changed the title [-]Enable nullable reference types by default [7.0 ][/-] [+]Enable nullable reference types by default [7.0][/+] on Aug 9, 2026
  12. changed the title [-]Enable nullable reference types by default [7.0][/-] [+]Enable nullable reference types by default [7.1][/+] on Aug 14, 2026
  13. Sergio0694 commented on Nov 10, 2026

    @Sergio0694

    For this (given Uno just mirrors the Windows SDK and WinAppSDK API surface), wouldn't it make sense to wait for those to get nullability support, and then mirror the same annotations here, so the experience is guaranteed to be consistent between WinUI/Uno targets? Otherwise you might end up with inconsistent nullable warnings in different project heads.

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

Metadata

Metadata

Assignees

Labels

area/contributor-experiencedifficulty/starter 🚀kind/enhancementno-repro

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions