Skip to content

[ci-scan-net11] Build Microsoft.Maui.sln fails with MSB4184 on an empty VersionLessThan version #39223

Closed

Description

@github-actions

Summary

The Windows and macOS Debug solution builds fail during project evaluation because VersionLessThan receives an empty version string.

Build Information

Affected Legs

  • Build Windows (Debug)
  • Build macOS (Debug)

Error Message

2026-10-07T10:41:59.8430424Z Package 'Microsoft.DotNet.Arcade.Sdk' (11.0.0-beta.26480.113) successfully downloaded to 'D:\a\_work\1\s\.packages\'.
2026-10-07T10:42:03.6275404Z D:\a\_work\1\s\.buildtasks\Microsoft.Maui.Controls.Common.targets(10,19): error MSB4184: The expression "[MSBuild]::VersionLessThan('', 11.0)" cannot be evaluated. Version string was not in a correct format. [D:\a\_work\1\s\src\Controls\samples\Controls.Sample\Maui.Controls.Sample.csproj]
2026-10-07T10:55:41.8005190Z /Users/cloudtest/vss/_work/1/s/.buildtasks/Microsoft.Maui.Controls.Common.targets(10,19): error MSB4184: The expression "[MSBuild]::VersionLessThan('', 11.0)" cannot be evaluated. Version string was not in a correct format. [/Users/cloudtest/vss/_work/1/s/src/Controls/samples/Controls.Sample/Maui.Controls.Sample.csproj]

Investigation Context

The diagnostic originates in .buildtasks/Microsoft.Maui.Controls.Common.targets at line 10. The same evaluation failure affects sample and device-test projects on both operating systems; it is a build break rather than a test assertion failure. The latest Windows log reports 14 errors and the macOS log reports 13 errors. At least one matching build-task log exists in each of the ten examined completed builds. The first-seen date is bounded by this window, not the original introduction date. The exact property provenance has not been established.

Activity

  1. added
    ci-scan-net11
    on Oct 7, 2026
  2. locked and limited conversation to collaborators on Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ci-scan-net11

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions