Skip to content

CuiSharp.TaskStatus collides with System.Threading.Tasks.TaskStatus #10

Closed

Description

@albertwoo

Context

Compiling my dashboard produced:

error CS0104: 'TaskStatus' is an ambiguous reference between
'CuiSharp.TaskStatus' and 'System.Threading.Tasks.TaskStatus'

The only fix was fully qualifying two call sites. Size and Color have the same relationship with System.Drawing (a likely early import for a desktop app that handles a bitmap or icon), and Status / Direction / Placement are generic enough to collide with app types.

Proposal

Any of these, cheapest first:

  • Put the value types under a CuiSharp.Types namespace so using CuiSharp; for widgets does not drag the colliding names in.
  • Rename the generic ones while pre-1.0: TaskStatus → CuiTaskStatus, and review Size / Color / Status.
  • At minimum, document the collision list next to the recommended using block in the skill.

Acceptance

using CuiSharp; using System.Threading.Tasks; compiles without qualification or aliases.

Activity

  1. added a commit that references this issue on Nov 11, 2026
  2. albertwoo commented on Nov 11, 2026

    @albertwoo
    ContributorAuthor

    Fixed and merged in PR #14.

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

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions