Skip to content

Commit

Permalink
Attempt to automate SharedFileVersionInfo progression.
Browse files Browse the repository at this point in the history
  • Loading branch information
CBenghi committed Aug 19, 2015
1 parent f7bcac4 commit c1799a6
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 22 deletions.
4 changes: 1 addition & 3 deletions SharedAssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,5 @@
[assembly: AssemblyCulture("")]

// AssemblyVersion is the CLR version. Change this only when making breaking changes
[assembly: AssemblyVersion("3.0.*")]
// AssemblyFileVersion should ideally be changed with each build, and should help identify the origin of a build
[assembly: AssemblyFileVersion("3.0.0.0")]
[assembly: AssemblyVersion("3.1")]

Binary file added SharedFileVersionInfo.cs
Binary file not shown.
20 changes: 13 additions & 7 deletions Xbim.Common/Xbim.Common.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@
<ItemGroup>
<Compile Include="..\SharedAssemblyInfo.cs">
<Link>Properties\SharedAssemblyInfo.cs</Link>
</Compile>
<Compile Include="..\SharedFileVersionInfo.cs">
<Link>Properties\SharedFileVersionInfo.cs</Link>
</Compile>
<Compile Include="Exceptions\ExceptionExtensions.cs" />
<Compile Include="Exceptions\XbimException.cs" />
Expand Down Expand Up @@ -236,14 +239,17 @@
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>
</PostBuildEvent>
<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("HHmm"))</Time>
<AssemblyFileVersionAttribute>[assembly:System.Reflection.AssemblyFileVersion("$(Year).$(Month).$(Date).$(Time)")]</AssemblyFileVersionAttribute>
</PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
<WriteLinesToFile
File="..\SharedFileVersionInfo.cs"
Lines="$(AssemblyFileVersionAttribute)"
Overwrite="true"
Encoding="Unicode"/>
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
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-V0001</version>
<version>3.1.10-V0002</version>
<title>xBIM Essentials</title>
<authors>xBIM team</authors>
<owners>Steve Lockley</owners>
Expand Down
3 changes: 3 additions & 0 deletions Xbim.IO/Xbim.IO.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@
<ItemGroup>
<Compile Include="..\SharedAssemblyInfo.cs">
<Link>Properties\SharedAssemblyInfo.cs</Link>
</Compile>
<Compile Include="..\SharedFileVersionInfo.cs">
<Link>Properties\SharedFileVersionInfo.cs</Link>
</Compile>
<Compile Include="DynamicGrouping\GroupingByXml.cs" />
<Compile Include="DynamicGrouping\GroupsFromXml.cs" />
Expand Down
14 changes: 3 additions & 11 deletions Xbim.Ifc.Extensions/Xbim.Ifc2x3.Extensions.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@
<ItemGroup>
<Compile Include="..\SharedAssemblyInfo.cs">
<Link>Properties\SharedAssemblyInfo.cs</Link>
</Compile>
<Compile Include="..\SharedFileVersionInfo.cs">
<Link>Properties\SharedFileVersionInfo.cs</Link>
</Compile>
<Compile Include="ActorSelectExtensions.cs" />
<Compile Include="AddressExtensions.cs" />
Expand Down Expand Up @@ -745,15 +748,4 @@
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
3 changes: 3 additions & 0 deletions Xbim.Ifc2x3/Xbim.Ifc2x3.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@
<ItemGroup>
<Compile Include="..\SharedAssemblyInfo.cs">
<Link>Properties\SharedAssemblyInfo.cs</Link>
</Compile>
<Compile Include="..\SharedFileVersionInfo.cs">
<Link>Properties\SharedFileVersionInfo.cs</Link>
</Compile>
<Compile Include="ActorResource\IfcAddress.cs" />
<Compile Include="ActorResource\IfcOrganizationRelationship.cs" />
Expand Down

0 comments on commit c1799a6

Please sign in to comment.