Permalink
Browse files

Build updates.

  • Loading branch information...
jp2masa committed Dec 29, 2018
1 parent 586b46a commit dc74f3697cf69ead19b8c9620397f5983de8cbf1
Showing with 15 additions and 9 deletions.
  1. +10 −8 Directory.Build.props
  2. +5 −1 build/Targets/PackageProperties.props
@@ -11,16 +11,18 @@
</PropertyGroup>

<PropertyGroup>
<PackageVersion>0.1.0</PackageVersion>
<PackageVersionSuffix Condition="'$(APPVEYOR)' == 'True'">-build$(APPVEYOR_BUILD_NUMBER)+$(APPVEYOR_REPO_COMMIT.Substring(0, 7))</PackageVersionSuffix>
<!--
If it's a design-time build, we can't use current time, because it can
cause an infinite restore loop, as the property is always changing.
This means that, for project references in VS (and other IDEs), the
resolved version will be the stable one, i.e. without the
-localbuildyyyyMMddhhmmss suffix.
This property sets the suffix for local builds.
For example, if the value of this property is '100', the version will be x.y.z-localbuild100.
The property is empty by default as it's not really easy to generate a unique number per local build.
-->
<PackageVersionSuffix Condition="'$(PackageVersionSuffix)' == '' AND '$(DesignTimeBuild)' != 'True'">-localbuild$([System.DateTime]::Now.ToString("yyyyMMddhhmmss"))</PackageVersionSuffix>
<PackageVersionLocalBuildSuffix></PackageVersionLocalBuildSuffix>
</PropertyGroup>

<PropertyGroup>
<PackageVersion>0.1.0</PackageVersion>
<PackageVersionSuffix Condition="'$(APPVEYOR)' == 'True'">-build$(APPVEYOR_BUILD_NUMBER)+$(APPVEYOR_REPO_COMMIT.Substring(0, 7))</PackageVersionSuffix>
<PackageVersionSuffix Condition="'$(PackageVersionSuffix)' == ''">-localbuild$(PackageVersionLocalBuildSuffix)</PackageVersionSuffix>
<PackageVersionSuffix Condition="'$(APPVEYOR_REPO_TAG)' == 'True'"></PackageVersionSuffix>
</PropertyGroup>

@@ -14,11 +14,15 @@
<PackageDescription>$(XSharpDescription)</PackageDescription>
<PackageIconUrl>https://github.com/CosmosOS/XSharp/raw/master/XSharp.ico</PackageIconUrl>
<PackageProjectUrl>https://www.x-sharp.net</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/CosmosOS/XSharp/raw/master/LICENSE.txt</PackageLicenseUrl>
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
<PackageTags>X# XSharp HLA High Level Assembler x86 x64 x86_64 ARM ARMv7 ARMv8 Assembly Cosmos OS Operating System</PackageTags>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/CosmosOS/XSharp</RepositoryUrl>
</PropertyGroup>

<ItemGroup>
<None Include="$(RepoRoot)LICENSE.txt" Pack="True" PackagePath="$(PackageLicenseFile)" Visible="False" />
</ItemGroup>

</Project>

0 comments on commit dc74f36

Please sign in to comment.