Skip to content

[v11][maui] csproj intellisense shows warning when <TargetFrameworks> has only one value #3443

Description

Describe the issue

When opening a MAUI project and the csproj file in the editor, a problem is reported because intellisense fails when has only one default value. This is by default on the MAUI template since the rest of the target frameworks are included conditionally. See:

<TargetFrameworks>net11.0-android</TargetFrameworks>
<TargetFrameworks Condition="!$([MSBuild]::IsOSPlatform('linux'))">$(TargetFrameworks);net11.0-ios;net11.0-maccatalyst</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net11.0-windows10.0.19041.0</TargetFrameworks>

Warning displayed (MSBLSP004 and MSBLSP009 warning on the Problems tab when opening the csproj):

'1' is not a valid version value.
Use <TargetFramework> (singular) when targeting a single framework

Image

Collect logs

csdevkit-logs-2026-08-24T16-09-45.zip

Steps to reproduce

  1. Create a new MAUI app
  2. Open the csproj
  3. Open the Problems tab, and notice that there's MSBLSP004 and MSBLSP009 warning

Expected behavior

Opening the csproj file should not produce any warnings or errors

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

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions