-
Notifications
You must be signed in to change notification settings - Fork 662
Description
Describe the bug
Hi.
I noticed one trouble in version 5.3.4.
I have some c# projects on .net Core and .net Standard in one solution.
And I have “Directory.Build.props” in core directory of solution
with content
false true true $(NoWarn);1591
But when I build this project, I get this message
Target "UpdateAssemblyInfo" skipped, due to false condition; ($(UpdateAssemblyInfo) == 'true') was evaluated as (false == 'true').
And this
Property reassignment: $(UpdateAssemblyInfo)="false" (previous value: "true") at .nuget\packages\gitversiontask\5.3.4\build\GitVersionTask.props (22,9)
and the version is "0.0.0.0"
In version 5.0.1 it works fine and write current version of file.
Also, if I insert “true” into the project itself, version calculation and writing is successful.
Expected Behavior
I expect that config in “Directory.Build.props” read currectly, like in version 5.0.1
And version write currectly.
Actual Behavior
Wrong version of file after build.
Possible Fix
I have no suggesions. (:
Steps to Reproduce
Create solution with two C# projects. One on .net Core, and another on .Net Standart.
Create additional folders for these projects and put them there.
Create file "Directory.Build.props" with content
<Project>
<PropertyGroup>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<UpdateAssemblyInfo>true</UpdateAssemblyInfo>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>$(NoWarn);1591</NoWarn>
</PropertyGroup>
</Project>
and put it in core directory of solution.
Try to build it and check version of the files.
Context
I update GitversionTask from 5.0.1 to 5.3.4 and expected that everything will be fine.
But I received a large number of files with version "0.0.0.0"
Your Environment
Windows 10