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

Microsoft.Maui.Graphics.Platform error #8509

Closed
pgmariotti opened this issue Jul 4, 2022 · 4 comments · Fixed by #14816
Closed

Microsoft.Maui.Graphics.Platform error #8509

pgmariotti opened this issue Jul 4, 2022 · 4 comments · Fixed by #14816
Assignees
Labels
area-drawing Shapes, Borders, Shadows, Graphics, BoxView, custom drawing fixed-in-8.0.0-preview.5.8529 Look for this fix in 8.0.0-preview.5.8529! p/1 Work that is important, and has been scheduled for release in this or an upcoming sprint platform/windows 🪟 t/bug Something isn't working

Comments

@pgmariotti
Copy link

Description

I am trying to display photos in a NetMaui app by using the GraphicsView control.
This worked properly until the latest release of Maui, when the following error appeared:
Severity Code Description Project File Line Suppression State
Error CS0234 The type or namespace name 'Platform' does not exist in the namespace 'Microsoft.Maui.Graphics' (are you missing an assembly reference?) TestMauiGraphics (net6.0-windows10.0.19041.0) E:\Projects\NetMAUI\TestMauiGraphics\TestMauiGraphics\MainPage.xaml.cs 35 Active
The error is not shown as marked on the source by VS2022 17,3.0 Preview 2.0
I have created a sample project to show the error at https://github.com/pgmariotti/TestMauiGraphics
Please tell me what I am doing wrong...

Steps to Reproduce

Just compile the program

Version with bug

6.0.400 (current)

Last version that worked well

6.0.312

Affected platforms

Windows

Affected platform versions

Windows 11 SDK 10.0.22000.0

Did you find any workaround?

No

Relevant log output

No response

@pgmariotti pgmariotti added s/needs-verification Indicates that this issue needs initial verification before further triage will happen t/bug Something isn't working labels Jul 4, 2022
@jsuarezruiz jsuarezruiz added area-drawing Shapes, Borders, Shadows, Graphics, BoxView, custom drawing fatal labels Jul 4, 2022
@xtuzy
Copy link

xtuzy commented Jul 4, 2022

maybe because current windows don't support platformimage https://docs.microsoft.com/ja-jp/dotnet/maui/user-interface/graphics/images.

i don't find your sample.

@pgmariotti
Copy link
Author

You may have noticed that it worked fine on the previous release of Maui. In any case, I am trying to compile for Android.
I enclose a zip file with the same content as the repositor
TestMauiGraphics.zip

@jsuarezruiz
Copy link
Contributor

Yeah, compiling in a single project you get the error because also compiles for Windows where (for now) should use W2DImage (PlatformImage not exists). This issue will be fixed by dotnet/Microsoft.Maui.Graphics#464
Meantime, you can use compilation directives to avoid the problem.

@jsuarezruiz jsuarezruiz added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed and removed s/needs-verification Indicates that this issue needs initial verification before further triage will happen labels Jul 6, 2022
@jsuarezruiz jsuarezruiz self-assigned this Jul 8, 2022
@jsuarezruiz jsuarezruiz added this to the 6.0-servicing milestone Jul 8, 2022
@samhouts samhouts added the p/1 Work that is important, and has been scheduled for release in this or an upcoming sprint label Jul 12, 2022
@hartez hartez removed the fatal label Aug 1, 2022
@Redth Redth modified the milestones: 6.0-servicing, Backlog Aug 30, 2022
@ghost
Copy link

ghost commented Aug 30, 2022

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

@samhouts samhouts modified the milestones: Backlog, .NET 8 Planning Jan 26, 2023
@samhouts samhouts removed s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Apr 5, 2023
@samhouts samhouts added the fixed-in-8.0.0-preview.5.8529 Look for this fix in 8.0.0-preview.5.8529! label Jun 21, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Jul 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-drawing Shapes, Borders, Shadows, Graphics, BoxView, custom drawing fixed-in-8.0.0-preview.5.8529 Look for this fix in 8.0.0-preview.5.8529! p/1 Work that is important, and has been scheduled for release in this or an upcoming sprint platform/windows 🪟 t/bug Something isn't working
Projects
None yet
6 participants