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

error CS0234: The type or namespace name 'iOS' does not exist in the namespace 'Microsoft.Maui.Controls.Compatibility.Platform' #20589

Closed
febinDonz opened this issue Feb 14, 2024 · 2 comments
Labels
platform/iOS 🍎 t/bug Something isn't working

Comments

@febinDonz
Copy link

Description

Getting error when trying to build with Pipelines.
Builds were working fine in Maui version 8.0.101

New pipeline is using 8.0.200.

Steps to Reproduce

Build Maui ios app using Pipelines.

Link to public reproduction project repository

No response

Version with bug

8.0.3 GA

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

8.0.6 SR1

Affected platforms

iOS

Affected platform versions

No response

Did you find any workaround?

No

Relevant log output

/Users/runner/work/1/s/TestProject/MauiProgram.cs(12,54): error CS0234: The type or namespace name 'iOS' does not exist in the namespace 'Microsoft.Maui.Controls.Compatibility.Platform' (are you missing an assembly reference?) [/Users/runner/work/1/s/TestProject/TestProject.csproj::TargetFramework=net8.0-ios]
/Users/runner/work/1/s/TestProject/Platforms/iOS/PlatformSpecific/DisclosureIndicatorRenderer.cs(2,40): error CS0234: The type or namespace name 'Compatibility' does not exist in the namespace 'Microsoft.Maui.Controls.Handlers' (are you missing an assembly reference?) [/Users/runner/work/1/s/TestProject/TestProject.csproj::TargetFramework=net8.0-ios]
/Users/runner/work/1/s/TestProject/Platforms/iOS/AppDelegate.cs(14,28): error CS0246: The type or namespace name 'MauiUIApplicationDelegate' could not be found (are you missing a using directive or an assembly reference?) [/Users/runner/work/1/s/TestProject/TestProject.csproj::TargetFramework=net8.0-ios]
/Users/runner/work/1/s/TestProject/Helpers/Controls/Label.cs(14,49): warning CS0108: 'Label.MaxLinesProperty' hides inherited member 'Label.MaxLinesProperty'. Use the new keyword if hiding was intended. [/Users/runner/work/1/s/TestProject/TestProject.csproj::TargetFramework=net8.0-ios]
/Users/runner/work/1/s/TestProject/Helpers/Controls/Label.cs(15,20): warning CS0108: 'Label.MaxLines' hides inherited member 'Label.MaxLines'. Use the new keyword if hiding was intended. [/Users/runner/work/1/s/TestProject/TestProject.csproj::TargetFramework=net8.0-ios]
/Users/runner/work/1/s/TestProject/Helpers/Controls/Label.cs(21,49): warning CS0108: 'Label.TextTypeProperty' hides inherited member 'Label.TextTypeProperty'. Use the new keyword if hiding was intended. [/Users/runner/work/1/s/TestProject/TestProject.csproj::TargetFramework=net8.0-ios]
/Users/runner/work/1/s/TestProject/Helpers/Controls/Label.cs(22,30): warning CS0108: 'Label.TextType' hides inherited member 'Label.TextType'. Use the new keyword if hiding was intended. [/Users/runner/work/1/s/TestProject/TestProject.csproj::TargetFramework=net8.0-ios]
@febinDonz febinDonz added the t/bug Something isn't working label Feb 14, 2024
@domneedham
Copy link

I think related to this, I am seeing the following issue with both macOS and iOS using the latest dotnet version:

/namespace/Platforms/MacCatalyst/CustomControls/CustomButtonHandler.cs(29,29): Error CS0115: 'CustomButtonHandler.ConnectHandler(UIButton)': no suitable method found to override (CS0115)

    protected override void ConnectHandler(UIButton platformView)
    {
        base.ConnectHandler(platformView);

        platformView.Layer.CornerRadius = 3;
        platformView.Layer.BorderWidth = 2;
        platformView.Layer.BorderColor = Colors.Transparent.ToCGColor();
    }

This was working fine beforehand with dotnet 8.0.0

@drasticactions
Copy link
Contributor

drasticactions commented Feb 14, 2024

Duplicate of #20565

This should be the same underlying issue involved with both.

@drasticactions drasticactions marked this as a duplicate of #20565 Feb 14, 2024
@drasticactions drasticactions closed this as not planned Won't fix, can't repro, duplicate, stale Feb 14, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Mar 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
platform/iOS 🍎 t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants