mirror of
https://github.com/VSadov/Satori.git
synced 2025-06-09 09:34:49 +09:00
Move corehost.proj to corehost directory (#57036)
* Move corehost.proj to corehost directory * Simplify host version overriding
This commit is contained in:
parent
7a799ce4d2
commit
25bb59daa0
6 changed files with 48 additions and 82 deletions
|
@ -105,4 +105,42 @@
|
|||
<FileWrites Include="$(_NETStandardCompatErrorFilePath)" />
|
||||
</ItemGroup>
|
||||
</Target>
|
||||
|
||||
<!--
|
||||
Arcade SDK versioning is defined by static properties in a targets file: work around this by
|
||||
moving properties based on versioning into a target.
|
||||
-->
|
||||
<Target Name="GetProductVersions">
|
||||
<PropertyGroup>
|
||||
<IncludePreReleaseLabelInPackageVersion Condition="'$(DotNetFinalVersionKind)' != 'release'">true</IncludePreReleaseLabelInPackageVersion>
|
||||
<IncludePreReleaseLabelInPackageVersion Condition="'$(SuppressFinalPackageVersion)' == 'true'">true</IncludePreReleaseLabelInPackageVersion>
|
||||
<IncludePreReleaseLabelInPackageVersion Condition="'$(IsShipping)' != 'true'">true</IncludePreReleaseLabelInPackageVersion>
|
||||
|
||||
<IncludeBuildNumberInPackageVersion Condition="'$(StabilizePackageVersion)' != 'true'">true</IncludeBuildNumberInPackageVersion>
|
||||
<IncludeBuildNumberInPackageVersion Condition="'$(SuppressFinalPackageVersion)' == 'true'">true</IncludeBuildNumberInPackageVersion>
|
||||
<IncludeBuildNumberInPackageVersion Condition="'$(IsShipping)' != 'true'">true</IncludeBuildNumberInPackageVersion>
|
||||
|
||||
<ProductVersionSuffix Condition="'$(IncludePreReleaseLabelInPackageVersion)' == 'true'">-$(VersionSuffix)</ProductVersionSuffix>
|
||||
<ProductBandVersion Condition="'$(ProductBandVersion)' == ''">$(MajorVersion).$(MinorVersion)</ProductBandVersion>
|
||||
<ProductionVersion Condition="'$(ProductionVersion)' == ''">$(ProductBandVersion).$(PatchVersion)</ProductionVersion>
|
||||
<ProductVersion>$(ProductionVersion)$(ProductVersionSuffix)</ProductVersion>
|
||||
|
||||
<SharedFrameworkNugetVersion>$(ProductVersion)</SharedFrameworkNugetVersion>
|
||||
<NuGetVersion>$(SharedFrameworkNugetVersion)</NuGetVersion>
|
||||
<InstallersRelativePath>Runtime/$(SharedFrameworkNugetVersion)/</InstallersRelativePath>
|
||||
|
||||
<!--
|
||||
By default, we are always building the nuget packages for HostPolicy, HostFXR and
|
||||
Dotnet/AppHost. Thus, the properties (below) are always set to $(ProductVersion).
|
||||
However, there are scenarios when only some of these components will change (e.g. during
|
||||
servicing, we may only change HostPolicy but not HostFXR and Dotnet/AppHost). In such cases,
|
||||
pass the appropriate version value(s) as argument to the build command in order to override;
|
||||
e.g. 'build -p:HostPolicyVersion=x.y.z ...'
|
||||
-->
|
||||
<HostVersion Condition="'$(HostVersion)' == ''">$(ProductVersion)</HostVersion>
|
||||
<AppHostVersion Condition="'$(AppHostVersion)' == ''">$(ProductVersion)</AppHostVersion>
|
||||
<HostResolverVersion Condition="'$(HostResolverVersion)' == ''">$(ProductVersion)</HostResolverVersion>
|
||||
<HostPolicyVersion Condition="'$(HostPolicyVersion)' == ''">$(ProductVersion)</HostPolicyVersion>
|
||||
</PropertyGroup>
|
||||
</Target>
|
||||
</Project>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue