Skip to content

CS8632 when Cake.Tool generates aliases from nullable-enabled addins #4977

Description

@devlead

CS8632 when Cake.Tool generates aliases from nullable-enabled addins

Cake.Tool emits CS8632 for addins compiled with NRT (Cake.Docker 1.5.0-beta.1, current Cake.FileHelpers). #nullable disable in the .cake file does nothing: aliases are generated above user script in a compilation with annotations disabled.

#addin nuget:?package=Cake.Docker&version=1.5.0-beta.1&prerelease

Do not suppress CS8632 globally. Wrap only nullable-aware generated aliases in #nullable enable / #nullable restore, and emit ? only for NullableAttribute flag 2 (including inner generics/arrays).

https://github.com/orgs/cake-build/discussions/4719
#4197

Activity

  1. added this to the v6.3.0 milestone on Sep 11, 2026
  2. added 2 commits that reference this issue on Sep 12, 2026
  3. added a commit that references this issue on Sep 12, 2026
  4. github-actions commented on Sep 14, 2026

    @github-actions

    🎉 This issue has been resolved in version v6.3.0 🎉

    The release is available on:

    Your GitReleaseManager bot 📦🚀

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

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions