Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Resolve Symbol 'LightGray' in UNO Platform #19634

Open
ShahrukhYousafzai opened this issue Mar 5, 2025 · 3 comments
Open

Unable to Resolve Symbol 'LightGray' in UNO Platform #19634

ShahrukhYousafzai opened this issue Mar 5, 2025 · 3 comments
Labels
difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification

Comments

@ShahrukhYousafzai
Copy link

ShahrukhYousafzai commented Mar 5, 2025

Current behavior

When using the UNO Platform, the symbol 'LightGray' is not recognized, resulting in error:

Image

Image

The symbol 'LightGray' is not recognized, but build works however these errors are pretty annoying as program do compiles properly

Expected behavior

The LightGray color should be resolved correctly, as it is a standard predefined color.

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

Create a new UNO Platform project.
Try using "LightGray" or any Color in XAML.
Observe the error in the build output.

Workaround

No response

Works on UWP/WinUI

Yes

Environment

Target Platforms: (WinUI, Android, iOS, WebAssembly, macOS, Linux)
IDE & Version: (Visual Studio 2022, JetBrains Rider)

NuGet package version(s)

No response

Affected platforms

Tested on Windows

IDE

No response

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

No response

@ShahrukhYousafzai ShahrukhYousafzai added difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification labels Mar 5, 2025
@jeromelaban
Copy link
Member

Thanks for the report.

This is indeed a known color:

public static Color LightGray => _lightGray ??= FromInteger(unchecked((int)0xFFD3D3D3));

This looks like a Rider IDE issue that we cannot fix without help from the Rider team. It's likely best to open an issue on their tracker.

@ShahrukhYousafzai
Copy link
Author

ShahrukhYousafzai commented Mar 5, 2025

I do get the same errors about color on visual studio as well. And I do not get this LightGray or any color error on any other type of project. It happens only on UNO Platform project no matter if I use Rider or Visual Studio as you can see in the screenshots of both IDEs

@jeromelaban
Copy link
Member

Thanks. Could you show a screenshot of the error you're seeing in visual studio?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification
Projects
None yet
Development

No branches or pull requests

2 participants