From 138b093b774d780c77a61c3b6062e0de9fc84cbb Mon Sep 17 00:00:00 2001 From: Daniel Cazzulino Date: Mon, 30 Sep 2024 18:09:52 -0300 Subject: [PATCH] Avoid non-Git constants conflict, update root comment As presently defined, if a custom constant in user's project had a naming conflict (i.e. `Root` or `Url`), the item metadata in the editorconfig/options would be mixed up, since it uses the item spec for that. By using the full area name, we avoid that, and switch instead to the custom root feature of using `Root=.` instead. We also take advantage of the new custom root summary comment to better reflect the nature of the provided constants. --- src/ThisAssembly.Git/ThisAssembly.Git.targets | 24 +++++++++++-------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/src/ThisAssembly.Git/ThisAssembly.Git.targets b/src/ThisAssembly.Git/ThisAssembly.Git.targets index d268c09f..31d5b3cc 100644 --- a/src/ThisAssembly.Git/ThisAssembly.Git.targets +++ b/src/ThisAssembly.Git/ThisAssembly.Git.targets @@ -6,6 +6,10 @@ + + Provides access to build-time git information + + pr$(GITHUB_REF.Replace('refs/pull/', '').Replace('/merge', '')) @@ -82,18 +86,18 @@ [pending build] - - - - - + + + + + - - - - - + + + + +