Skip to content
This repository was archived by the owner on Apr 20, 2023. It is now read-only.

Commit e7cf325

Browse files
committed
Using Major.Minor.Patch versions for rpm packages dependencies.
1 parent a3879f8 commit e7cf325

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

build/package/Installer.RPM.targets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@
6868
<!-- Replace config json variables -->
6969
<ItemGroup>
7070
<SDKTokenValue Include="%SHARED_HOST_RPM_VERSION%">
71-
<ReplacementString>$(MicrosoftNETCoreAppMajorMinorVersion)</ReplacementString>
71+
<ReplacementString>$(MicrosoftNETCoreAppMajorMinorPatchVersion)</ReplacementString>
7272
</SDKTokenValue>
7373
<SDKTokenValue Include="%ASPNETCORE_SHAREDFX_RPM_PACKAGE_NAME%">
7474
<ReplacementString>$(AspNetCoreSharedFxRpmPackageName)</ReplacementString>
7575
</SDKTokenValue>
7676
<SDKTokenValue Include="%ASPNETCORE_SHAREDFX_RPM_PACKAGE_VERSION%">
77-
<ReplacementString>$(AspNetCoreVersion)</ReplacementString>
77+
<ReplacementString>$(AspNetCoreMajorMinorPatchVersion)</ReplacementString>
7878
</SDKTokenValue>
7979
<SDKTokenValue Include="%SHARED_HOST_RPM_NAME%">
8080
<ReplacementString>$(SharedFxRpmPackageName)</ReplacementString>

build/package/LinuxNativeInstallerDependencyVersions.targets

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,17 @@
66
<MicrosoftNETCoreAppPatchSeparatorIndex>$(MicrosoftNETCoreAppPackageVersion.IndexOf('.', $(MicrosoftNETCoreAppPatchSeparatorIndex)))</MicrosoftNETCoreAppPatchSeparatorIndex>
77
<MicrosoftNETCoreAppMajorMinorVersion>$(MicrosoftNETCoreAppPackageVersion.Substring(0, $(MicrosoftNETCoreAppPatchSeparatorIndex)))</MicrosoftNETCoreAppMajorMinorVersion>
88

9+
<MicrosoftNETCoreAppVersionPreReleaseSeparator>$(MicrosoftNETCoreAppPackageVersion.IndexOf('-'))</MicrosoftNETCoreAppVersionPreReleaseSeparator>
10+
<MicrosoftNETCoreAppMajorMinorPatchVersion>$(MicrosoftNETCoreAppPackageVersion)</MicrosoftNETCoreAppMajorMinorPatchVersion>
11+
<MicrosoftNETCoreAppMajorMinorPatchVersion Condition=" '$(MicrosoftNETCoreAppVersionPreReleaseSeparator)' != -1 ">$(MicrosoftNETCoreAppPackageVersion.Substring(0, $(MicrosoftNETCoreAppVersionPreReleaseSeparator)))</MicrosoftNETCoreAppMajorMinorPatchVersion>
12+
913
<AspNetCoreVersionPatchSeparatorIndex>$([MSBuild]::Add($(AspNetCoreVersion.IndexOf('.')), 1))</AspNetCoreVersionPatchSeparatorIndex>
1014
<AspNetCoreVersionPatchSeparatorIndex>$(AspNetCoreVersion.IndexOf('.', $(AspNetCoreVersionPatchSeparatorIndex)))</AspNetCoreVersionPatchSeparatorIndex>
1115
<AspNetCoreMajorMinorVersion>$(AspNetCoreVersion.Substring(0, $(AspNetCoreVersionPatchSeparatorIndex)))</AspNetCoreMajorMinorVersion>
16+
17+
<AspNetCoreVersionPreReleaseSeparator>$(AspNetCoreVersion.IndexOf('-'))</AspNetCoreVersionPreReleaseSeparator>
18+
<AspNetCoreMajorMinorPatchVersion>$(AspNetCoreVersion)</AspNetCoreMajorMinorPatchVersion>
19+
<AspNetCoreMajorMinorPatchVersion Condition=" '$(AspNetCoreVersionPreReleaseSeparator)' != -1 ">$(AspNetCoreVersion.Substring(0, $(AspNetCoreVersionPreReleaseSeparator)))</AspNetCoreMajorMinorPatchVersion>
1220
</PropertyGroup>
1321
</Target>
1422
</Project>

0 commit comments

Comments
 (0)