Skip to content

Commit 3c1323d

Browse files
committed
Fixed bug in build task treating MSBuildProjectDirectory as MSBuildProjectFullPath.
1 parent f333221 commit 3c1323d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

build/GitInfoTask.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ private string RunGit(string arguments)
5757
pro1.StartInfo.RedirectStandardOutput = true;
5858
pro1.StartInfo.UseShellExecute = false;
5959
pro1.StartInfo.CreateNoWindow = true;
60-
pro1.StartInfo.WorkingDirectory = Path.GetFullPath(this.ProjectDir).Replace(Path.GetFileName(this.ProjectDir), string.Empty);
60+
pro1.StartInfo.WorkingDirectory = this.ProjectDir;
6161
try
6262
{
6363
_ = pro1.Start();

src/GitBuildInfo.SourceGenerator/Directory.Build.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<PropertyGroup>
44
<TargetFramework>netstandard2.0</TargetFramework>
55
<IsPackable>true</IsPackable>
6-
<Version>1.0.10</Version>
7-
<PackageReleaseNotes>Always properly output the git information so generation can always happen when configured correctly.</PackageReleaseNotes>
6+
<Version>1.0.11</Version>
7+
<PackageReleaseNotes>Fix bug in build task treating MSBuildProjectDirectory as MSBuildProjectFullPath.</PackageReleaseNotes>
88
<Copyright>Copyright (c) 2021</Copyright>
99
<!-- Special properties for analyzer packages. -->
1010
<IncludeBuildOutput>false</IncludeBuildOutput>

0 commit comments

Comments
 (0)