|
16 | 16 |
|
17 | 17 | <!-- Provide default targets which can be hooked onto or overridden as necessary -->
|
18 | 18 | <Target Name="Pack" />
|
19 |
| - |
20 |
| - <!-- |
21 |
| - Arcade SDK versioning is defined by static properties in a targets file: work around this by |
22 |
| - moving properties based on versioning into a target. |
23 |
| - --> |
24 |
| - <Target Name="GetProductVersions"> |
25 |
| - <PropertyGroup> |
26 |
| - <IncludePreReleaseLabelInPackageVersion Condition="'$(DotNetFinalVersionKind)' != 'release'">true</IncludePreReleaseLabelInPackageVersion> |
27 |
| - <IncludePreReleaseLabelInPackageVersion Condition="'$(SuppressFinalPackageVersion)' == 'true'">true</IncludePreReleaseLabelInPackageVersion> |
28 |
| - <IncludePreReleaseLabelInPackageVersion Condition="'$(IsShipping)' != 'true'">true</IncludePreReleaseLabelInPackageVersion> |
29 |
| - |
30 |
| - <IncludeBuildNumberInPackageVersion Condition="'$(StabilizePackageVersion)' != 'true'">true</IncludeBuildNumberInPackageVersion> |
31 |
| - <IncludeBuildNumberInPackageVersion Condition="'$(SuppressFinalPackageVersion)' == 'true'">true</IncludeBuildNumberInPackageVersion> |
32 |
| - <IncludeBuildNumberInPackageVersion Condition="'$(IsShipping)' != 'true'">true</IncludeBuildNumberInPackageVersion> |
33 |
| - |
34 |
| - <ProductVersionSuffix Condition="'$(IncludePreReleaseLabelInPackageVersion)' == 'true'">-$(VersionSuffix)</ProductVersionSuffix> |
35 |
| - <ProductBandVersion Condition="'$(ProductBandVersion)' == ''">$(MajorVersion).$(MinorVersion)</ProductBandVersion> |
36 |
| - <ProductionVersion Condition="'$(ProductionVersion)' == ''">$(ProductBandVersion).$(PatchVersion)</ProductionVersion> |
37 |
| - <ProductVersion>$(ProductionVersion)$(ProductVersionSuffix)</ProductVersion> |
38 |
| - |
39 |
| - <SharedFrameworkNugetVersion>$(ProductVersion)</SharedFrameworkNugetVersion> |
40 |
| - <NuGetVersion>$(SharedFrameworkNugetVersion)</NuGetVersion> |
41 |
| - <InstallersRelativePath>Runtime/$(SharedFrameworkNugetVersion)/</InstallersRelativePath> |
42 |
| - |
43 |
| - <!-- |
44 |
| - By default, we are always building the nuget packages for HostPolicy, HostFXR and |
45 |
| - Dotnet/AppHost. Thus, the "UseShipped*" properties (below) are always set to false. |
46 |
| -
|
47 |
| - However, there are scenarios when some of these components will not change (e.g. during |
48 |
| - servicing, we may only change HostPolicy but not HostFXR and Dotnet/AppHost). In such cases, |
49 |
| - set the appropriate "UseShipped*" property below to true and the corresponding "*Version" |
50 |
| - property to the desired version so that we use the last shipped version of the package. |
51 |
| - --> |
52 |
| - |
53 |
| - <!-- The host/apphost package versions are only updated whenever there is a change in the components --> |
54 |
| - <UseShippedHostPackage>false</UseShippedHostPackage> |
55 |
| - <HostVersion Condition="'$(UseShippedHostPackage)' != 'true'">$(ProductVersion)</HostVersion> |
56 |
| - <HostVersion Condition="'$(UseShippedHostPackage)' == 'true'">2.0.0</HostVersion> |
57 |
| - |
58 |
| - <!-- The AppHostVersion is used for all hosts that aren't dotnet.exe --> |
59 |
| - <UseShippedAppHostPackage>false</UseShippedAppHostPackage> |
60 |
| - <AppHostVersion Condition="'$(UseShippedAppHostPackage)' != 'true'">$(ProductVersion)</AppHostVersion> |
61 |
| - <AppHostVersion Condition="'$(UseShippedAppHostPackage)' == 'true'">2.0.0</AppHostVersion> |
62 |
| - |
63 |
| - <!-- |
64 |
| - The FXR Resolver package version is only updated whenever there is a change in it. |
65 |
| - If there is ever a need to use a shipped version of the package, then set the property |
66 |
| - below to true. |
67 |
| - --> |
68 |
| - <UseShippedHostResolverPackage>false</UseShippedHostResolverPackage> |
69 |
| - <HostResolverVersion Condition="'$(UseShippedHostResolverPackage)' != 'true'">$(ProductVersion)</HostResolverVersion> |
70 |
| - <HostResolverVersion Condition="'$(UseShippedHostResolverPackage)' == 'true'">2.0.0</HostResolverVersion> |
71 |
| - |
72 |
| - <!-- |
73 |
| - Host Policy package version is only updated whenever there is a change in it. |
74 |
| - If there is ever a need to use a shipped version of the package, then set the property |
75 |
| - below to true. |
76 |
| - --> |
77 |
| - <UseShippedHostPolicyPackage>false</UseShippedHostPolicyPackage> |
78 |
| - <HostPolicyVersion Condition="'$(UseShippedHostPolicyPackage)' != 'true'">$(ProductVersion)</HostPolicyVersion> |
79 |
| - <HostPolicyVersion Condition="'$(UseShippedHostPolicyPackage)' == 'true'">2.0.0</HostPolicyVersion> |
80 |
| - </PropertyGroup> |
81 |
| - </Target> |
82 | 19 | </Project>
|
0 commit comments