Repository navigation
Follow-up to #55095: address review comments from joeloff - #55131
Merged
Merged
Conversation
… VersionOverride rationale Co-authored-by: Copilot App <[email protected]>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR is a small follow-up to #55095 that (1) standardizes grammar in internal assertion failure messages used by TemplateEngine command utilities, and (2) expands in-code documentation explaining why Verify is pinned via VersionOverride in the shipping TemplateVerifier project rather than via Central Package Management.
Changes:
- Add a comma before “but” across
CommandResultAssertionsfailure messages to improve readability/consistency. - Expand the
Verifypackage reference comment in TemplateVerifier shared props to clarify why CPM can’t be used due to two requiredVerifyversion lines (XunitV3 toolchain vs MSTest tests).
Show a summary per file
| File | Description |
|---|---|
| src/TemplateEngine/Tools/Shared/Microsoft.TemplateEngine.CommandUtils/CommandResultAssertions.cs | Updates assertion exception messages to consistently use “, but …” phrasing. |
| src/TemplateEngine/Tools/Microsoft.TemplateEngine.Authoring.TemplateVerifier/Microsoft.TemplateEngine.Authoring.TemplateVerifier.Shared.props | Expands rationale comment for using VersionOverride="28.12.0" for Verify in the shipping TemplateVerifier project. |
Copilot's findings
- Files reviewed: 2/2 changed files
- Comments generated: 0
Evangelink
enabled auto-merge
July 7, 2026 04:37
joeloff
approved these changes
Jul 13, 2026
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Follow-up to #55095 addressing the two open review threads from @joeloff.
1. Grammar in assertion messages (
CommandResultAssertions.cs)joeloff suggested a comma before "but" in the null-check message, and noted "a few other messages have the same issue." Added a comma before "but" consistently across all assertion messages (e.g.
Expected command to pass, but it did not.).2.
VerifyVersionOverridevs CPM (TemplateVerifier.Shared.props)joeloff questioned whether
VersionOverrideis the opposite of pinning under Central Package Management.I investigated moving
Verifyinto CPM, but it doesn't work: the repo genuinely needs twoVerifyversions side by side —28.12.0(pulled in viaVerify.XunitV3by the Authoring.CLI/TemplateSearch toolchain) and31.19.0(pulled in viaVerify.MSTestby the test projects). Centrally pinningVerifyto28.12.0producesNU1109package-downgrade errors in the MSTest-based test projects; pinning to31.19.0would break the CLI publish output (NETSDK1152, mismatchedEmptyFilesversions).VersionOverrideis therefore the correct, targeted tool here — it aligns only the shippingTemplateVerifierproject with the CLI's transitive28.12.0, without disturbing the test projects. Rather than change the mechanism, this PR expands the comment to explain exactly why CPM can't be used, directly answering the review question.Validation
restore.cmdacross the full solution: 0 warnings, 0 errors.TemplateVerifierproject build: 0 warnings, 0 errors.Co-authored-by: Copilot App [email protected]