Skip to content

Commit

Permalink
remove git hash from product version in .exe properties. Remove fourt…
Browse files Browse the repository at this point in the history
…h digit from UI bar when Revision is 0
  • Loading branch information
Brennan1994 committed Jan 1, 2025
1 parent 3dae1a9 commit 354c306
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<Authors>US Army Corps of Engineers Hydrologic Engineering Center</Authors>
<TargetFramework>net8.0</TargetFramework>
<Version>2.0.0.1-Beta+LocalDev</Version>
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
</PropertyGroup>

</Project>
2 changes: 1 addition & 1 deletion HEC.FDA.ViewModel/Study/FdaStudyVM.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public string Version
{
Assembly assembly = Assembly.GetExecutingAssembly();
var version = assembly.GetName().Version;
return $"HEC-FDA {version.Major}.{version.Minor}.{version.Build}.{version.Revision}{(version.Revision > 0 ? " Beta" : "")}";
return $"HEC-FDA {version.Major}.{version.Minor}.{version.Build}{(version.Revision > 0 ? $".{version.Revision} Beta" : "")}";
}
}

Expand Down

0 comments on commit 354c306

Please sign in to comment.