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
Collect logs
csdevkit-logs-2026-08-24T16-09-45.zip
Steps to reproduce
- Create a new MAUI app
- Open the csproj
- 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:
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:
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 frameworkCollect logs
csdevkit-logs-2026-08-24T16-09-45.zip
Steps to reproduce
Expected behavior
Opening the csproj file should not produce any warnings or errors
Environment information
Extension: