Skip to content

Follow-up to #55095: address review comments from joeloff - #55131

Merged
Evangelink merged 1 commit into
mainfrom
dev/amauryleve/upgraded-giggle
Jul 13, 2026
Merged

Evangelink merged 1 commit into
mainfrom
dev/amauryleve/upgraded-giggle

Conversation

@Evangelink

Copy link
Copy Markdown
Member

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. Verify VersionOverride vs CPM (TemplateVerifier.Shared.props)

joeloff questioned whether VersionOverride is the opposite of pinning under Central Package Management.

I investigated moving Verify into CPM, but it doesn't work: the repo genuinely needs two Verify versions side by side — 28.12.0 (pulled in via Verify.XunitV3 by the Authoring.CLI/TemplateSearch toolchain) and 31.19.0 (pulled in via Verify.MSTest by the test projects). Centrally pinning Verify to 28.12.0 produces NU1109 package-downgrade errors in the MSTest-based test projects; pinning to 31.19.0 would break the CLI publish output (NETSDK1152, mismatched EmptyFiles versions).

VersionOverride is therefore the correct, targeted tool here — it aligns only the shipping TemplateVerifier project with the CLI's transitive 28.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.cmd across the full solution: 0 warnings, 0 errors.
  • TemplateVerifier project build: 0 warnings, 0 errors.

Co-authored-by: Copilot App [email protected]

… VersionOverride rationale

Co-authored-by: Copilot App <[email protected]>
Copilot AI review requested due to automatic review settings July 3, 2026 09:58
@Evangelink
Evangelink requested a review from a team as a code owner July 3, 2026 09:58

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 CommandResultAssertions failure messages to improve readability/consistency.
  • Expand the Verify package reference comment in TemplateVerifier shared props to clarify why CPM can’t be used due to two required Verify version 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
Evangelink requested a review from joeloff July 3, 2026 10:58
@Evangelink
Evangelink enabled auto-merge July 7, 2026 04:37
@Evangelink
Evangelink merged commit fb0e07d into main Jul 13, 2026
27 checks passed
@Evangelink
Evangelink deleted the dev/amauryleve/upgraded-giggle branch July 13, 2026 15:39
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-preview7 milestone Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants