From 23ba564e3d7ae37bebea297957b57b56323718fd Mon Sep 17 00:00:00 2001 From: AraHaan Date: Thu, 13 Jan 2022 18:12:28 -0500 Subject: [PATCH] Fixed bug where the git information is not properly obtained and the head information was not properly dumped to the right file name. This also sadly requires fixing the roslyn version to 4.0.1 for now to avoid loading errors when using the generator when building projects. Signed-off-by: AraHaan --- build/GitBuildInfo.SourceGenerator.targets | 3 +++ src/GitBuildInfo.SourceGenerator/Directory.Build.props | 6 +++--- src/GitBuildInfo.SourceGenerator/Directory.Packages.props | 2 +- .../GitBuildInfo.SourceGenerator.targets | 4 ---- tests/Directory.Packages.props | 2 +- 5 files changed, 8 insertions(+), 9 deletions(-) diff --git a/build/GitBuildInfo.SourceGenerator.targets b/build/GitBuildInfo.SourceGenerator.targets index 3a0cd3d..30a2dc1 100644 --- a/build/GitBuildInfo.SourceGenerator.targets +++ b/build/GitBuildInfo.SourceGenerator.targets @@ -10,6 +10,7 @@ WorkingDirectory="$(MSBuildProjectDirectory)" ConsoleToMSBuild="true" IgnoreExitCode="true" + StandardOutputImportance="low" Condition="'$(GitHead)' == ''"> @@ -18,6 +19,7 @@ WorkingDirectory="$(MSBuildProjectDirectory)" ConsoleToMSBuild="true" IgnoreExitCode="true" + StandardOutputImportance="low" Condition="'$(CommitHash)' == ''"> @@ -26,6 +28,7 @@ WorkingDirectory="$(MSBuildProjectDirectory)" ConsoleToMSBuild="true" IgnoreExitCode="true" + StandardOutputImportance="low" Condition="'$(GitBranch)' == ''"> diff --git a/src/GitBuildInfo.SourceGenerator/Directory.Build.props b/src/GitBuildInfo.SourceGenerator/Directory.Build.props index 6591883..8d60ae5 100644 --- a/src/GitBuildInfo.SourceGenerator/Directory.Build.props +++ b/src/GitBuildInfo.SourceGenerator/Directory.Build.props @@ -4,14 +4,14 @@ netstandard2.0 enable true - 1.0.15 - Fixed bug where the git information is not properly obtained and the head information was not properly dumped to the right file name. + 1.0.16 + Fixed issue where the roslyn dependencies gets placed in the nuget package. Copyright (c) 2021-2022 true false - true + false $(NoWarn);NU5128;NU5127 GitBuildInfo.SourceGenerator.nuspec true diff --git a/src/GitBuildInfo.SourceGenerator/Directory.Packages.props b/src/GitBuildInfo.SourceGenerator/Directory.Packages.props index 62ac3cc..72634e6 100644 --- a/src/GitBuildInfo.SourceGenerator/Directory.Packages.props +++ b/src/GitBuildInfo.SourceGenerator/Directory.Packages.props @@ -7,7 +7,7 @@ - + diff --git a/src/GitBuildInfo.SourceGenerator/GitBuildInfo.SourceGenerator.targets b/src/GitBuildInfo.SourceGenerator/GitBuildInfo.SourceGenerator.targets index 2e12773..30f08d2 100644 --- a/src/GitBuildInfo.SourceGenerator/GitBuildInfo.SourceGenerator.targets +++ b/src/GitBuildInfo.SourceGenerator/GitBuildInfo.SourceGenerator.targets @@ -14,10 +14,6 @@ - - - - diff --git a/tests/Directory.Packages.props b/tests/Directory.Packages.props index 8ba695a..ac00d98 100644 --- a/tests/Directory.Packages.props +++ b/tests/Directory.Packages.props @@ -1,7 +1,7 @@ - +