Skip to content

Address hallucinated MSBuild review suggestion on .NET 11 Preview 1 update - #22746

Closed
jonpryor with Copilot wants to merge 1 commit into
dev/jonpryor/jonp-try-net11-p1from
copilot/sub-pr-22742
Closed

jonpryor with Copilot wants to merge 1 commit into
dev/jonpryor/jonp-try-net11-p1from
copilot/sub-pr-22742

Conversation

Copilot AI commented Feb 27, 2026 •

Copy link
Copy Markdown
Contributor

An automated code review on #22742 incorrectly suggested replacing standard MSBuild conditions with a nonexistent $([MSBuild]::IsTrue(...)) helper, falsely claiming that '$(X)' == 'true' comparisons are case-sensitive.

Both claims are wrong: MSBuild ==/!= string comparisons are always case-insensitive by spec, and $([MSBuild]::IsTrue(...)) does not exist in MSBuild. The existing conditions in Directory.Build.props are correct as-is — no code changes are required.

PR Type:

💬 Other... (Addressing incorrect automated review feedback — no functional changes)

What is the current behavior? 🤔

An automated review comment on #22742 suggested changing MSBuild conditions from:

<PropertyGroup Condition=" '$(UnoEnablePreviewFeatures)' != 'true' ">
<PropertyGroup Condition=" '$(UnoEnablePreviewFeatures)' == 'true' ">

to use a nonexistent $([MSBuild]::IsTrue(...)) property function, citing false brittleness concerns.

What is the new behavior? 🚀

No code changes. The existing standard MSBuild string comparisons are confirmed correct — MSBuild conditions are case-insensitive by definition, and no helper function is needed or available.

PR Checklist ✅

Please check if your PR fulfills the following requirements:

Other information ℹ️

See the MSBuild conditions docs: MSBuild == comparisons are explicitly documented as case-insensitive. $([MSBuild]::IsTrue(...)) is not listed in the MSBuild property functions reference and does not exist in the dotnet/dotnet repo.


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Copilot AI mentioned this pull request Feb 27, 2026
5 tasks
Copilot AI changed the title [WIP] Update to address feedback on .NET 11 Preview 1 MSBuild comparisons Address hallucinated MSBuild review suggestion on .NET 11 Preview 1 update Feb 27, 2026
@jonpryor

jonpryor commented Mar 2, 2026

Copy link
Copy Markdown
Contributor

Closing useless PR that doesn't do anything.

@jonpryor jonpryor closed this Mar 2, 2026
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators May 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants