Skip to content

Commit eca4181

Browse files
committed
Fix build warning generated during WPF XAML target
1 parent b35c8a4 commit eca4181

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/GitVersion.MsBuild/msbuild/tools/GitVersion.MsBuild.props

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@
5454
-->
5555
<GenerateGitVersionInformation Condition=" '$(GenerateGitVersionInformation)' == '' And '$(_TargetAssemblyProjectName)' != '' ">false</GenerateGitVersionInformation>
5656
<GenerateGitVersionInformation Condition=" '$(GenerateGitVersionInformation)' == '' ">true</GenerateGitVersionInformation>
57+
<!--
58+
Compounding on the previous "GenerateTemporaryTargetAssembly" explanation, "UpdateAssemblyInfo" is
59+
also called in this temp-build. This results in a warning since we already updated assembly info.
60+
Prevent UpdateAssemblyInfo from running a second time.
61+
-->
62+
<UpdateAssemblyInfo Condition=" '$(UpdateAssemblyInfo)' == 'true' And '$(_TargetAssemblyProjectName)' != '' ">false</UpdateAssemblyInfo>
5763

5864
<!-- Property that enables GetVersion -->
5965
<GetVersion Condition=" '$(DisableGitVersionTask)' == 'true' ">false</GetVersion>

0 commit comments

Comments
 (0)