Centralize ComputeSharp version number

このコミットが含まれているのは:
Sergio Pedri committed 2022-04-24 21:04:34 +02:00
1 親 568fb053c3
コミット cd4f6ed1fb
2ファイル変更
+12 -3

検索条件に一致するファイルはありません

+11 -2
ファイルの表示
@@ -12,9 +12,18 @@
<PackageOutputPath>$(MSBuildThisFileDirectory)artifacts/</PackageOutputPath>
</PropertyGroup>
<!--
The target version being built (this is referenced by all build steps).
This version will set the package version prefix and the assembly version.
As such, this needs to be changed before a new release as well.
-->
<PropertyGroup>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<VersionPrefix>2.0.0</VersionPrefix>
<ComputeSharpPackageVersion>2.0.0</ComputeSharpPackageVersion>
</PropertyGroup>
<PropertyGroup>
<AssemblyVersion>$(ComputeSharpPackageVersion).0</AssemblyVersion>
<VersionPrefix>$(ComputeSharpPackageVersion)</VersionPrefix>
<VersionSuffix Condition="'$(EXCLUDE_SUFFIX_FROM_VERSION)' != 'true'">alpha</VersionSuffix>
<VersionSuffix Condition="'$(GITHUB_EVENT_NAME)' == 'pull_request'">pr</VersionSuffix>
<ContinuousIntegrationBuild Condition="'$(GITHUB_RUN_ID)' != ''">true</ContinuousIntegrationBuild>
+1 -1
ファイルの表示
@@ -13,9 +13,9 @@
Manually set the version if null. This is copied from Microsoft.NET.DefaultAssemblyInfo.targets and is needed
for cases where that target is not being automatically imported (which happens because MSBuild is used instead
of dotnet build for some cases, due to the solution having some UWP and WinUI 3 projects, and non SDK-style too).
The lines setting the prefix have been omitted, as that is already handled in the root .props file.
-->
<PropertyGroup Condition=" '$(Version)' == '' ">
<VersionPrefix Condition=" '$(VersionPrefix)' == '' ">2.0.0</VersionPrefix>
<Version Condition=" '$(VersionSuffix)' != '' ">$(VersionPrefix)-$(VersionSuffix)</Version>
<Version Condition=" '$(Version)' == '' ">$(VersionPrefix)</Version>
</PropertyGroup>