Skip to content
Permalink
Browse files

[Build] Unify version management in a single file (except for samples…

… which will be versioned separately)
  • Loading branch information
xen2 committed Nov 27, 2018
1 parent 75ea086 commit a3d3173539631d81a91c11e9af5e3af4f561e997
@@ -1,10 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\..\targets\Xenko.PreSettings.targets" />

<PropertyGroup>
<XenkoPackAssets>true</XenkoPackAssets>
<TargetFramework>$(TargetFrameworkTool)</TargetFramework>
<EnableDefaultItems>false</EnableDefaultItems>
<!-- Note: we version this package manually because most of the time the samples are big and don't need to be updated -->
<PackageVersion>3.1.0.1</PackageVersion>
<PackageVersion Condition="'$(XenkoPackageBuild)' != 'true'">$(PackageVersion)-dev</PackageVersion>
</PropertyGroup>

<Import Project="$(XenkoPostSettingsTargets)" />
@@ -7,10 +7,16 @@
<GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute>
<GenerateAssemblyInformationalVersionAttribute>false</GenerateAssemblyInformationalVersionAttribute>
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
<PackageVersion Condition=" '$(PackageVersion)' == '' ">3.1.0.1-dev</PackageVersion>

<_XenkoSharedAssemblyInfoLines Condition="'$(XenkoPackageBuild)' == 'true'">$([System.IO.File]::ReadAllText('$(MSBuildThisFileDirectory)..\shared\SharedAssemblyInfo.NuGet.cs'))</_XenkoSharedAssemblyInfoLines>
<_XenkoSharedAssemblyInfoLines Condition="'$(XenkoPackageBuild)' != 'true'">$([System.IO.File]::ReadAllText('$(MSBuildThisFileDirectory)..\shared\SharedAssemblyInfo.cs'))</_XenkoSharedAssemblyInfoLines>
<XenkoPublicVersion>$([System.Text.RegularExpressions.Regex]::Match($(_XenkoSharedAssemblyInfoLines), `.*PublicVersion = \"(.*)\";.*`).Groups[1].Value)</XenkoPublicVersion>
<XenkoNuGetVersion>$(XenkoPublicVersion)$([System.Text.RegularExpressions.Regex]::Match($(_XenkoSharedAssemblyInfoLines), `.*NuGetVersionSuffix = \"(.*)\";.*`).Groups[1].Value)</XenkoNuGetVersion>

<PackageVersion Condition=" '$(PackageVersion)' == '' ">$(XenkoNuGetVersion)</PackageVersion>
<Copyright>Copyright © Xenko contributors and Silicon Studio Corp.</Copyright>
</PropertyGroup>

<!--Import Local Pre Settings for the solution being loaded -->
<Import Project="$(SolutionDir)$(SolutionName).GlobalSettings.Local.targets" Condition="Exists('$(SolutionDir)$(SolutionName).GlobalSettings.Local.targets')" />
<Import Project="$(SolutionDir)Xenko.Core.GlobalSettings.Local.targets" Condition="Exists('$(SolutionDir)Xenko.Core.GlobalSettings.Local.targets')" />

0 comments on commit a3d3173

Please sign in to comment.
You can’t perform that action at this time.