Skip to content

Commit

Permalink
Fixed bug in build task treating MSBuildProjectDirectory as MSBuildPr…
Browse files Browse the repository at this point in the history
…ojectFullPath.
  • Loading branch information
AraHaan committed Jun 17, 2021
1 parent f333221 commit 3c1323d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/GitInfoTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions src/GitBuildInfo.SourceGenerator/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<IsPackable>true</IsPackable>
<Version>1.0.10</Version>
<PackageReleaseNotes>Always properly output the git information so generation can always happen when configured correctly.</PackageReleaseNotes>
<Version>1.0.11</Version>
<PackageReleaseNotes>Fix bug in build task treating MSBuildProjectDirectory as MSBuildProjectFullPath.</PackageReleaseNotes>
<Copyright>Copyright (c) 2021</Copyright>
<!-- Special properties for analyzer packages. -->
<IncludeBuildOutput>false</IncludeBuildOutput>
Expand Down

0 comments on commit 3c1323d

Please sign in to comment.