From 9b55325429395a42b2c6afc9cbaf595c2ea05bcd Mon Sep 17 00:00:00 2001 From: "Julio C. Rocha" Date: Fri, 10 May 2024 14:00:18 -0700 Subject: [PATCH] Track whether working dir has modifications --- Directory.Build.targets | 94 ++++++++++++++++++++++------------------- 1 file changed, 51 insertions(+), 43 deletions(-) diff --git a/Directory.Build.targets b/Directory.Build.targets index 86b78f885..f4a55905d 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -1,44 +1,52 @@ - - - - - - - - - - - - - - - - - - - - true - - - - - %(PreprocessorDefinitions); - GIT_REVISION=$(GitRevision); - GIT_REVISION_SHORT=$(GitRevisionShort); - VERSION_BUILD=$(GitRevisionCount); - VERSION_BUILD_YEAR=$([System.DateTime]::Now.ToString(`yyyy`)) - - - - - %(PreprocessorDefinitions); - GIT_REVISION=$(GitRevision); - GIT_REVISION_SHORT=$(GitRevisionShort); - VERSION_BUILD=$(GitRevisionCount); - VERSION_BUILD_YEAR=$([System.DateTime]::Now.ToString(`yyyy`)) - - - - - + + + + + + + + + + + + + + + + + + + true + $(GitRevisionShort) + $(GitRevisionShort)-Dirty + + + + + + + + + + + + %(PreprocessorDefinitions); + GIT_REVISION=$(GitRevision); + GIT_REVISION_SHORT=$(GitRevisionShort); + VERSION_BUILD=$(GitRevisionCount); + VERSION_BUILD_YEAR=$([System.DateTime]::Now.ToString(`yyyy`)) + + + + + %(PreprocessorDefinitions); + GIT_REVISION=$(GitRevision); + GIT_REVISION_SHORT=$(GitRevisionShort); + VERSION_BUILD=$(GitRevisionCount); + VERSION_BUILD_YEAR=$([System.DateTime]::Now.ToString(`yyyy`)) + + + + + \ No newline at end of file