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