Skip to content

GLCanvas feature and / or GLCanvasElement reference out of date Uno libraries #24106

Open

Description

@BrianDT

Current behavior 🐛

Copied the GLCanvasElementSimpleTriangle project from the repository and added the content into a newly generated net10 Uno 6.6.42 template and it generated these errors:

1>------ Build started: Project: GLCanvasElementSimpleTriangle, Configuration: Debug Any CPU ------
1>D:\Samples\Uno\GLCanvasElementSimpleTriangle\GLCanvasElementSimpleTriangle\SimpleTriangleGlCanvasElement.cs(11,5,11,20): error CS0012: The type 'Grid' is defined in an assembly that is not referenced. You must add a reference to assembly 'Uno.UI, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null'.
1>D:\Samples\Uno\GLCanvasElementSimpleTriangle\GLCanvasElementSimpleTriangle\SimpleTriangleGlCanvasElement.cs(17,39,17,41): error CS0012: The type 'Grid' is defined in an assembly that is not referenced. You must add a reference to assembly 'Uno.UI, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null'.
1>D:\Samples\Uno\GLCanvasElementSimpleTriangle\GLCanvasElementSimpleTriangle\SimpleTriangleGlCanvasElement.cs(106,37,106,39): error CS0012: The type 'Grid' is defined in an assembly that is not referenced. You must add a reference to assembly 'Uno.UI, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null'.
1>D:\Samples\Uno\GLCanvasElementSimpleTriangle\GLCanvasElementSimpleTriangle\SimpleTriangleGlCanvasElement.cs(113,42,113,44): error CS0012: The type 'Grid' is defined in an assembly that is not referenced. You must add a reference to assembly 'Uno.UI, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null'.
1>D:\Samples\Uno\GLCanvasElementSimpleTriangle\GLCanvasElementSimpleTriangle\obj\Debug\net10.0-desktop\Uno.UI.SourceGenerators\Uno.UI.SourceGenerators.XamlGenerator.XamlCodeGenerator\MainPage_d4989594dfcf4ed3b3ff484dd46ee1b2.cs(73,14,73,43): error CS0246: The type or namespace name 'SimpleTriangleGlCanvasElement' could not be found (are you missing a using directive or an assembly reference?)

Expected behavior 🎯

Should reference the Uno.WinUI libraries and build

How to reproduce it (as minimally and precisely as possible) 🔬

Updated sample uploaded to repository here:
https://github.com/BrianDT/GLCanvasElementSimpleTriangleIssue.git

Workaround 🛠️

None obvious

Renderer 🎨

  • Skia
  • Native

Affected platforms 📱💻🖥️

Windows App SDK

Uno.Sdk version (and other relevant versions) 📦

6.6.42

IDE version 🧑‍💻

Insiders [12106.202]

Anything else we need to know? 💬

Sample should be updated to use SkiaRenderer?

Activity

  1. added
    triage/untriaged
    on Aug 18, 2026
  2. added theissue type on Aug 18, 2026
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

    triage/untriaged

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions