Skip to content

Commit

Permalink
Dll versioning approach unified ahead of 4.0 graduation to master.
Browse files Browse the repository at this point in the history
  • Loading branch information
CBenghi committed Jun 29, 2016
1 parent f55cb43 commit b8d89db
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions Xbim.Common/Xbim.Common.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -238,12 +238,15 @@
<None Include="XbimOpenSourceKeyFile.snk" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PropertyGroup>
<Year>$([System.DateTime]::Now.ToString("yy"))</Year>
<Month>$([System.DateTime]::Now.ToString("MM"))</Month>
<Date>$([System.DateTime]::Now.ToString("dd"))</Date>
<Time>$([System.DateTime]::Now.ToString("HH"))</Time>
<AssemblyFileVersionAttribute>[assembly:System.Reflection.AssemblyFileVersion("3.1.$(Year)$(Month).$(Date)$(Time)")]</AssemblyFileVersionAttribute>
<Day>$([System.DateTime]::Now.ToString("dd"))</Day>
<Minute>$([System.Int32]::Parse($([System.DateTime]::Now.ToString("mm"))))</Minute>
<Hour>$([System.Int32]::Parse($([System.DateTime]::Now.ToString("HH"))))</Hour>
<MinuteOfDay>$([MSBuild]::Add($(Minute),$([MSBuild]::Multiply($(Hour),60))))</MinuteOfDay>
<HalfMinuteOfDay>$([System.Convert]::ToInt16($([MSBuild]::Divide($(MinuteOfDay), 2))))</HalfMinuteOfDay>
<AssemblyFileVersionAttribute>[assembly:System.Reflection.AssemblyFileVersion("3.1.$(Year)$(Month).$(Day)$(HalfMinuteOfDay)")];</AssemblyFileVersionAttribute>
</PropertyGroup>
<Target Name="BeforeBuild">
<WriteLinesToFile
Expand Down
2 changes: 1 addition & 1 deletion Xbim.Essentials.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/10/nuspec.xsd">
<metadata>
<id>Xbim.Essentials</id>
<version>3.1.10</version>
<version>3.1.11</version>
<title>xBIM Essentials</title>
<authors>xBIM team</authors>
<owners>Steve Lockley</owners>
Expand Down

0 comments on commit b8d89db

Please sign in to comment.