From 3c1323db0204f6bcb9f42f9a7536eb3af3975256 Mon Sep 17 00:00:00 2001 From: AraHaan Date: Thu, 17 Jun 2021 13:36:48 -0400 Subject: [PATCH] Fixed bug in build task treating MSBuildProjectDirectory as MSBuildProjectFullPath. --- build/GitInfoTask.cs | 2 +- src/GitBuildInfo.SourceGenerator/Directory.Build.props | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build/GitInfoTask.cs b/build/GitInfoTask.cs index 2ed2884..3037fb5 100644 --- a/build/GitInfoTask.cs +++ b/build/GitInfoTask.cs @@ -57,7 +57,7 @@ private string RunGit(string arguments) pro1.StartInfo.RedirectStandardOutput = true; pro1.StartInfo.UseShellExecute = false; pro1.StartInfo.CreateNoWindow = true; - pro1.StartInfo.WorkingDirectory = Path.GetFullPath(this.ProjectDir).Replace(Path.GetFileName(this.ProjectDir), string.Empty); + pro1.StartInfo.WorkingDirectory = this.ProjectDir; try { _ = pro1.Start(); diff --git a/src/GitBuildInfo.SourceGenerator/Directory.Build.props b/src/GitBuildInfo.SourceGenerator/Directory.Build.props index 7d6559a..e986b39 100644 --- a/src/GitBuildInfo.SourceGenerator/Directory.Build.props +++ b/src/GitBuildInfo.SourceGenerator/Directory.Build.props @@ -3,8 +3,8 @@ netstandard2.0 true - 1.0.10 - Always properly output the git information so generation can always happen when configured correctly. + 1.0.11 + Fix bug in build task treating MSBuildProjectDirectory as MSBuildProjectFullPath. Copyright (c) 2021 false