From 0152180929aa1d3af84bcbffd22e21d68fd384de Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Mon, 10 Aug 2026 05:49:44 -0400 Subject: [PATCH] build(tst-11): stop Windows builds stamping git stderr into InformationalVersion (NEXT-09) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit MSBuildThisFileDirectory ends in a backslash, which escaped the closing quote of the Exec command on Windows; git then failed and, because the target runs with ContinueOnError + ConsoleToMSBuild (which mixes stderr into ConsoleOutput), the failure text was stamped as the source revision — an observed stamp read '0.1.2+fatal: cannot change to ...'. Append '.' to the quoted path so the trailing separator can no longer escape the quote, and gate SourceRevisionId on a short-SHA shape so no future git failure text can become the revision either. Windows verification runs on windev with the rest of this batch; macOS stamp confirmed unchanged (0.2.0+75c71ad). --- src/Directory.Build.props | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Directory.Build.props b/src/Directory.Build.props index d390d73..0b809f2 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -26,7 +26,10 @@ - + - $(_StampedGitSha.Trim()) + + $(_StampedGitSha.Trim())