Skip to content

[v11][maui] Editor errors shown in platform specific .cs files (Android, iOS) in a MAUI app #3448

Description

Describe the issue

When opening .cs files from the "Platforms/iOS" or "Platforms/Android" sub-folders, editor errors are shown everywhere (see screenshots below). Notice that this doesn't prevent the project to restore or the app to build.

Image Image

Collect logs

csdevkit-logs-2026-08-31T12-36-04.zip

Steps to reproduce

  1. Install a C# DevKit v2 extension with MAUI support: https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=15073180&view=results
  2. Install a .NET MAUI v2 extension (VSIX artifact): https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=15076165&view=results
  3. Create or open a .NET MAUI project
  4. Wait for C# DevKit and .NET MAUI extension to load
  5. Open any .cs file under "Platforms/iOS" or "Platforms/Android"

Expected behavior

No errors or warnings should be shown in the .cs file

Environment information

  • VSCode: 1.136.0-insider (Universal)
  • .NET SDK: 11.0.100-preview.7.26381.103
  • MAUI: 11.0.0-preview.7.26403.4

Extension:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't workingv11

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions