Repository navigation
Conversation
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
Contributor
|
Closing useless PR that doesn't do anything. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 inDirectory.Build.propsare 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:
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:
Screenshots Compare Test Runresults.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.