Merge pull request #5942 from livarcocc/use_build_id_for_version
Switching from using commit height for versioning to using Arcade's scheme.
This commit is contained in:
commit
3ad3abd343
21 changed files with 102 additions and 176 deletions
41
.vsts-ci.yml
41
.vsts-ci.yml
|
@ -46,30 +46,21 @@ stages:
|
||||||
_BuildConfig: Debug
|
_BuildConfig: Debug
|
||||||
_BuildArchitecture: x86
|
_BuildArchitecture: x86
|
||||||
_DOTNET_CLI_UI_LANGUAGE: ''
|
_DOTNET_CLI_UI_LANGUAGE: ''
|
||||||
_DropSuffix: ''
|
|
||||||
Build_ES_Debug_x64:
|
Build_ES_Debug_x64:
|
||||||
_BuildConfig: Debug
|
_BuildConfig: Debug
|
||||||
_BuildArchitecture: x64
|
_BuildArchitecture: x64
|
||||||
_DOTNET_CLI_UI_LANGUAGE: es
|
_DOTNET_CLI_UI_LANGUAGE: es
|
||||||
_DropSuffix: ''
|
|
||||||
Build_DropSuffix_Release_x64:
|
|
||||||
_BuildConfig: Release
|
|
||||||
_BuildArchitecture: x64
|
|
||||||
_DOTNET_CLI_UI_LANGUAGE: ''
|
|
||||||
_DropSuffix: true
|
|
||||||
# Internal-only builds
|
# Internal-only builds
|
||||||
${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
|
${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
|
||||||
Build_Release_x86:
|
Build_Release_x86:
|
||||||
_BuildConfig: Release
|
_BuildConfig: Release
|
||||||
_BuildArchitecture: x86
|
_BuildArchitecture: x86
|
||||||
_DOTNET_CLI_UI_LANGUAGE: ''
|
_DOTNET_CLI_UI_LANGUAGE: ''
|
||||||
_DropSuffix: ''
|
|
||||||
# Always run builds
|
# Always run builds
|
||||||
Build_Release_x64:
|
Build_Release_x64:
|
||||||
_BuildConfig: Release
|
_BuildConfig: Release
|
||||||
_BuildArchitecture: x64
|
_BuildArchitecture: x64
|
||||||
_DOTNET_CLI_UI_LANGUAGE: ''
|
_DOTNET_CLI_UI_LANGUAGE: ''
|
||||||
_DropSuffix: ''
|
|
||||||
_AdditionalBuildParameters: '/p:PublishInternalAsset=true
|
_AdditionalBuildParameters: '/p:PublishInternalAsset=true
|
||||||
/p:DotNetPublishBlobFeedKey=$(dotnetfeed-storage-access-key-1)
|
/p:DotNetPublishBlobFeedKey=$(dotnetfeed-storage-access-key-1)
|
||||||
/p:DotNetPublishBlobFeedUrl=$(_ArcadePublishBlobFeedUrl)'
|
/p:DotNetPublishBlobFeedUrl=$(_ArcadePublishBlobFeedUrl)'
|
||||||
|
@ -77,7 +68,6 @@ stages:
|
||||||
_BuildConfig: Release
|
_BuildConfig: Release
|
||||||
_BuildArchitecture: arm
|
_BuildArchitecture: arm
|
||||||
_DOTNET_CLI_UI_LANGUAGE: ''
|
_DOTNET_CLI_UI_LANGUAGE: ''
|
||||||
_DropSuffix: ''
|
|
||||||
|
|
||||||
- template: /eng/build.yml
|
- template: /eng/build.yml
|
||||||
parameters:
|
parameters:
|
||||||
|
@ -94,84 +84,60 @@ stages:
|
||||||
_LinuxPortable: ''
|
_LinuxPortable: ''
|
||||||
_RuntimeIdentifier: ''
|
_RuntimeIdentifier: ''
|
||||||
_BuildArchitecture: 'x64'
|
_BuildArchitecture: 'x64'
|
||||||
_DropSuffix: ''
|
|
||||||
Build_Ubuntu_18_04_Debug_x64:
|
Build_Ubuntu_18_04_Debug_x64:
|
||||||
_BuildConfig: Debug
|
_BuildConfig: Debug
|
||||||
_DockerParameter: '--docker ubuntu.18.04'
|
_DockerParameter: '--docker ubuntu.18.04'
|
||||||
_LinuxPortable: '--linux-portable'
|
_LinuxPortable: '--linux-portable'
|
||||||
_RuntimeIdentifier: ''
|
_RuntimeIdentifier: ''
|
||||||
_BuildArchitecture: 'x64'
|
_BuildArchitecture: 'x64'
|
||||||
_DropSuffix: ''
|
|
||||||
Build_Fedora_29_Debug_x64:
|
Build_Fedora_29_Debug_x64:
|
||||||
_BuildConfig: Debug
|
_BuildConfig: Debug
|
||||||
_DockerParameter: '--docker fedora.29'
|
_DockerParameter: '--docker fedora.29'
|
||||||
_LinuxPortable: '--linux-portable'
|
_LinuxPortable: '--linux-portable'
|
||||||
_RuntimeIdentifier: ''
|
_RuntimeIdentifier: ''
|
||||||
_BuildArchitecture: 'x64'
|
_BuildArchitecture: 'x64'
|
||||||
_DropSuffix: ''
|
|
||||||
Build_CentOS_7_1_Debug_x64:
|
Build_CentOS_7_1_Debug_x64:
|
||||||
_BuildConfig: Debug
|
_BuildConfig: Debug
|
||||||
_DockerParameter: '--docker centos'
|
_DockerParameter: '--docker centos'
|
||||||
_LinuxPortable: ''
|
_LinuxPortable: ''
|
||||||
_RuntimeIdentifier: ''
|
_RuntimeIdentifier: ''
|
||||||
_BuildArchitecture: 'x64'
|
_BuildArchitecture: 'x64'
|
||||||
_DropSuffix: ''
|
|
||||||
Build_Debian_Stretch_Debug_x64:
|
Build_Debian_Stretch_Debug_x64:
|
||||||
_BuildConfig: Debug
|
_BuildConfig: Debug
|
||||||
_DockerParameter: '--docker debian'
|
_DockerParameter: '--docker debian'
|
||||||
_LinuxPortable: ''
|
_LinuxPortable: ''
|
||||||
_RuntimeIdentifier: ''
|
_RuntimeIdentifier: ''
|
||||||
_BuildArchitecture: 'x64'
|
_BuildArchitecture: 'x64'
|
||||||
_DropSuffix: ''
|
|
||||||
Build_Rhel_7_2_Release_x64:
|
Build_Rhel_7_2_Release_x64:
|
||||||
_BuildConfig: Release
|
_BuildConfig: Release
|
||||||
_DockerParameter: '--docker rhel'
|
_DockerParameter: '--docker rhel'
|
||||||
_LinuxPortable: ''
|
_LinuxPortable: ''
|
||||||
_RuntimeIdentifier: ''
|
_RuntimeIdentifier: ''
|
||||||
_BuildArchitecture: 'x64'
|
_BuildArchitecture: 'x64'
|
||||||
_DropSuffix: ''
|
|
||||||
Build_Rhel_6_Debug_x64:
|
Build_Rhel_6_Debug_x64:
|
||||||
_BuildConfig: Debug
|
_BuildConfig: Debug
|
||||||
_DockerParameter: '--docker rhel.6'
|
_DockerParameter: '--docker rhel.6'
|
||||||
_LinuxPortable: ''
|
_LinuxPortable: ''
|
||||||
_RuntimeIdentifier: '--runtime-id rhel.6-x64'
|
_RuntimeIdentifier: '--runtime-id rhel.6-x64'
|
||||||
_BuildArchitecture: 'x64'
|
_BuildArchitecture: 'x64'
|
||||||
_DropSuffix: ''
|
|
||||||
Build_Arm_Debug:
|
Build_Arm_Debug:
|
||||||
_BuildConfig: Debug
|
_BuildConfig: Debug
|
||||||
_DockerParameter: ''
|
_DockerParameter: ''
|
||||||
_LinuxPortable: '--linux-portable'
|
_LinuxPortable: '--linux-portable'
|
||||||
_RuntimeIdentifier: '--runtime-id linux-arm'
|
_RuntimeIdentifier: '--runtime-id linux-arm'
|
||||||
_BuildArchitecture: 'arm'
|
_BuildArchitecture: 'arm'
|
||||||
_DropSuffix: ''
|
|
||||||
Build_Arm64_Debug:
|
Build_Arm64_Debug:
|
||||||
_BuildConfig: Debug
|
_BuildConfig: Debug
|
||||||
_DockerParameter: ''
|
_DockerParameter: ''
|
||||||
_LinuxPortable: '--linux-portable'
|
_LinuxPortable: '--linux-portable'
|
||||||
_RuntimeIdentifier: '--runtime-id linux-arm64'
|
_RuntimeIdentifier: '--runtime-id linux-arm64'
|
||||||
_BuildArchitecture: 'arm64'
|
_BuildArchitecture: 'arm64'
|
||||||
_DropSuffix: ''
|
|
||||||
Build_Linux_musl_Debug_x64:
|
Build_Linux_musl_Debug_x64:
|
||||||
_BuildConfig: Debug
|
_BuildConfig: Debug
|
||||||
_DockerParameter: '--docker alpine.3.6'
|
_DockerParameter: '--docker alpine.3.6'
|
||||||
_LinuxPortable: ''
|
_LinuxPortable: ''
|
||||||
_RuntimeIdentifier: '--runtime-id linux-musl-x64'
|
_RuntimeIdentifier: '--runtime-id linux-musl-x64'
|
||||||
_BuildArchitecture: 'x64'
|
_BuildArchitecture: 'x64'
|
||||||
_DropSuffix: ''
|
|
||||||
Build_LinuxPortable_NoSuffix_Release_x64:
|
|
||||||
_BuildConfig: Release
|
|
||||||
_DockerParameter: ''
|
|
||||||
_LinuxPortable: '--linux-portable'
|
|
||||||
_RuntimeIdentifier: ''
|
|
||||||
_BuildArchitecture: 'x64'
|
|
||||||
_DropSuffix: true
|
|
||||||
Build_Arm_NoSuffix_Release:
|
|
||||||
_BuildConfig: Release
|
|
||||||
_DockerParameter: ''
|
|
||||||
_LinuxPortable: '--linux-portable'
|
|
||||||
_RuntimeIdentifier: '--runtime-id linux-arm'
|
|
||||||
_BuildArchitecture: 'arm'
|
|
||||||
_DropSuffix: true
|
|
||||||
${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
|
${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
|
||||||
Build_Arm_Release:
|
Build_Arm_Release:
|
||||||
_BuildConfig: Release
|
_BuildConfig: Release
|
||||||
|
@ -179,35 +145,30 @@ stages:
|
||||||
_LinuxPortable: '--linux-portable'
|
_LinuxPortable: '--linux-portable'
|
||||||
_RuntimeIdentifier: '--runtime-id linux-arm'
|
_RuntimeIdentifier: '--runtime-id linux-arm'
|
||||||
_BuildArchitecture: 'arm'
|
_BuildArchitecture: 'arm'
|
||||||
_DropSuffix: ''
|
|
||||||
Build_Arm64_Release:
|
Build_Arm64_Release:
|
||||||
_BuildConfig: Release
|
_BuildConfig: Release
|
||||||
_DockerParameter: ''
|
_DockerParameter: ''
|
||||||
_LinuxPortable: '--linux-portable'
|
_LinuxPortable: '--linux-portable'
|
||||||
_RuntimeIdentifier: '--runtime-id linux-arm64'
|
_RuntimeIdentifier: '--runtime-id linux-arm64'
|
||||||
_BuildArchitecture: 'arm64'
|
_BuildArchitecture: 'arm64'
|
||||||
_DropSuffix: ''
|
|
||||||
Build_Rhel_6_Release_x64:
|
Build_Rhel_6_Release_x64:
|
||||||
_BuildConfig: Release
|
_BuildConfig: Release
|
||||||
_DockerParameter: '--docker rhel.6'
|
_DockerParameter: '--docker rhel.6'
|
||||||
_LinuxPortable: ''
|
_LinuxPortable: ''
|
||||||
_RuntimeIdentifier: '--runtime-id rhel.6-x64'
|
_RuntimeIdentifier: '--runtime-id rhel.6-x64'
|
||||||
_BuildArchitecture: 'x64'
|
_BuildArchitecture: 'x64'
|
||||||
_DropSuffix: ''
|
|
||||||
Build_Linux_musl_Release_x64:
|
Build_Linux_musl_Release_x64:
|
||||||
_BuildConfig: Release
|
_BuildConfig: Release
|
||||||
_DockerParameter: '--docker alpine.3.6'
|
_DockerParameter: '--docker alpine.3.6'
|
||||||
_LinuxPortable: ''
|
_LinuxPortable: ''
|
||||||
_RuntimeIdentifier: '--runtime-id linux-musl-x64'
|
_RuntimeIdentifier: '--runtime-id linux-musl-x64'
|
||||||
_BuildArchitecture: 'x64'
|
_BuildArchitecture: 'x64'
|
||||||
_DropSuffix: ''
|
|
||||||
Build_Linux_Portable_Deb_Release_x64:
|
Build_Linux_Portable_Deb_Release_x64:
|
||||||
_BuildConfig: Release
|
_BuildConfig: Release
|
||||||
_DockerParameter: '--docker ubuntu.16.04'
|
_DockerParameter: '--docker ubuntu.16.04'
|
||||||
_LinuxPortable: '--linux-portable'
|
_LinuxPortable: '--linux-portable'
|
||||||
_RuntimeIdentifier: ''
|
_RuntimeIdentifier: ''
|
||||||
_BuildArchitecture: 'x64'
|
_BuildArchitecture: 'x64'
|
||||||
_DropSuffix: ''
|
|
||||||
# Do not publish zips and tarballs. The linux-x64 binaries are
|
# Do not publish zips and tarballs. The linux-x64 binaries are
|
||||||
# already published by Build_LinuxPortable_Release_x64
|
# already published by Build_LinuxPortable_Release_x64
|
||||||
_AdditionalBuildParameters: '/p:PublishBinariesAndBadge=false'
|
_AdditionalBuildParameters: '/p:PublishBinariesAndBadge=false'
|
||||||
|
@ -217,7 +178,6 @@ stages:
|
||||||
_LinuxPortable: '--linux-portable'
|
_LinuxPortable: '--linux-portable'
|
||||||
_RuntimeIdentifier: ''
|
_RuntimeIdentifier: ''
|
||||||
_BuildArchitecture: 'x64'
|
_BuildArchitecture: 'x64'
|
||||||
_DropSuffix: ''
|
|
||||||
# Do not publish zips and tarballs. The linux-x64 binaries are
|
# Do not publish zips and tarballs. The linux-x64 binaries are
|
||||||
# already published by Build_LinuxPortable_Release_x64
|
# already published by Build_LinuxPortable_Release_x64
|
||||||
_AdditionalBuildParameters: '/p:PublishBinariesAndBadge=false'
|
_AdditionalBuildParameters: '/p:PublishBinariesAndBadge=false'
|
||||||
|
@ -227,7 +187,6 @@ stages:
|
||||||
_LinuxPortable: '--linux-portable'
|
_LinuxPortable: '--linux-portable'
|
||||||
_RuntimeIdentifier: ''
|
_RuntimeIdentifier: ''
|
||||||
_BuildArchitecture: 'x64'
|
_BuildArchitecture: 'x64'
|
||||||
_DropSuffix: ''
|
|
||||||
|
|
||||||
- template: /eng/build.yml
|
- template: /eng/build.yml
|
||||||
parameters:
|
parameters:
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the MIT license. See License.txt in the project root for full license information. -->
|
<!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the MIT license. See License.txt in the project root for full license information. -->
|
||||||
<Project>
|
<Project>
|
||||||
|
|
||||||
<Import Project="$(RepoRoot)\src\redist\targets\Versions.targets" />
|
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Product>Sdk</Product>
|
<Product>Sdk</Product>
|
||||||
<BlobStoragePartialRelativePath>$(Product)</BlobStoragePartialRelativePath>
|
<BlobStoragePartialRelativePath>$(Product)</BlobStoragePartialRelativePath>
|
||||||
|
@ -56,19 +53,18 @@
|
||||||
|
|
||||||
<Target Name="PublishSdkAssetsAndChecksums"
|
<Target Name="PublishSdkAssetsAndChecksums"
|
||||||
BeforeTargets="Publish"
|
BeforeTargets="Publish"
|
||||||
DependsOnTargets="SetSdkVersionInfo"
|
|
||||||
Condition=" '$(PublishSdkAssetsAndChecksumsToBlob)' == 'true' ">
|
Condition=" '$(PublishSdkAssetsAndChecksumsToBlob)' == 'true' ">
|
||||||
|
|
||||||
<!-- If the sdk version is stabilized, then we should double publish the binaries to suffixed file names.
|
<!-- If the sdk version is stabilized, then we should double publish the binaries to suffixed file names.
|
||||||
To do this, create new copies of the blobs, replacing the SdkVersion string in the file name with the
|
To do this, create new copies of the blobs, replacing the SdkVersion string in the file name with the
|
||||||
FullNugetVersion, except if the FullNuGetVersion is already in the file name (which would end up
|
FullNugetVersion, except if the FullNuGetVersion is already in the file name (which would end up
|
||||||
publishing the same exact file name twice). -->
|
publishing the same exact file name twice). -->
|
||||||
<ItemGroup Condition="'$(DropSuffix)'== 'true'">
|
<ItemGroup Condition="'$(DotNetFinalVersionKind)'== 'release'">
|
||||||
<SdkAssetsToCopyWithSuffix Include="@(SdkAssetsToPublish)" Condition="'$([System.String]::Copy(`%(Filename)`).Contains(`$(SdkVersion)`))' == 'true'">
|
<SdkAssetsToCopyWithSuffix Include="@(SdkAssetsToPublish)" Condition="'$([System.String]::Copy(`%(Filename)`).Contains(`$(Version)`))' == 'true'">
|
||||||
<SuffixedPath>$(ArtifactsShippingPackagesDir)/$([System.String]::Copy('%(Filename)%(Extension)').Replace('$(SdkVersion)' ,'$(FullNuGetVersion)'))</SuffixedPath>
|
<SuffixedPath>$(ArtifactsShippingPackagesDir)/$([System.String]::Copy('%(Filename)%(Extension)').Replace('$(Version)' ,'$(FullNuGetVersion)'))</SuffixedPath>
|
||||||
</SdkAssetsToCopyWithSuffix>
|
</SdkAssetsToCopyWithSuffix>
|
||||||
<CheckSumsToCopyWithSuffix Include="@(CheckSumsToPublish)" Condition="'$([System.String]::Copy(`%(Filename)`).Contains(`$(SdkVersion)`))' == 'true'">
|
<CheckSumsToCopyWithSuffix Include="@(CheckSumsToPublish)" Condition="'$([System.String]::Copy(`%(Filename)`).Contains(`$(Version)`))' == 'true'">
|
||||||
<SuffixedPath>$(ArtifactsShippingPackagesDir)/$([System.String]::Copy('%(Filename)%(Extension)').Replace('$(SdkVersion)' ,'$(FullNuGetVersion)'))</SuffixedPath>
|
<SuffixedPath>$(ArtifactsShippingPackagesDir)/$([System.String]::Copy('%(Filename)%(Extension)').Replace('$(Version)' ,'$(FullNuGetVersion)'))</SuffixedPath>
|
||||||
</CheckSumsToCopyWithSuffix>
|
</CheckSumsToCopyWithSuffix>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
@ -103,7 +99,7 @@
|
||||||
<ManifestArtifactData>NonShipping=true</ManifestArtifactData>
|
<ManifestArtifactData>NonShipping=true</ManifestArtifactData>
|
||||||
</SdkAssetsWithSuffixToPushToBlobFeed>
|
</SdkAssetsWithSuffixToPushToBlobFeed>
|
||||||
|
|
||||||
<ChecksumsWithSuffixToPushToBlobFeed Include="@(CheckSumsToPublishWithSuffix)" Condition="'$(DropSuffix)'== 'true'">
|
<ChecksumsWithSuffixToPushToBlobFeed Include="@(CheckSumsToPublishWithSuffix)" Condition="'$(DotNetFinalVersionKind)'== 'release'">
|
||||||
<RelativeBlobPath>$(BlobStoragePartialRelativePath)/$(FullNugetVersion)/$([System.String]::Copy('%(Filename)%(Extension)'))</RelativeBlobPath>
|
<RelativeBlobPath>$(BlobStoragePartialRelativePath)/$(FullNugetVersion)/$([System.String]::Copy('%(Filename)%(Extension)'))</RelativeBlobPath>
|
||||||
<ManifestArtifactData>NonShipping=true</ManifestArtifactData>
|
<ManifestArtifactData>NonShipping=true</ManifestArtifactData>
|
||||||
</ChecksumsWithSuffixToPushToBlobFeed>
|
</ChecksumsWithSuffixToPushToBlobFeed>
|
||||||
|
|
|
@ -4,12 +4,20 @@
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<UsingToolNetFrameworkReferenceAssemblies>true</UsingToolNetFrameworkReferenceAssemblies>
|
<UsingToolNetFrameworkReferenceAssemblies>true</UsingToolNetFrameworkReferenceAssemblies>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<!-- This is a fake version to fool arcade. In this repo, we handle the versioning
|
|
||||||
of assets ourselves, since all we do is generate zips/tarballs and native installers.
|
|
||||||
To actually update the version for this repo, look at src/redist/targets/Versions.targets -->
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<VersionPrefix>1.0.0</VersionPrefix>
|
<VersionMajor>5</VersionMajor>
|
||||||
<PreReleaseVersionLabel>preview</PreReleaseVersionLabel>
|
<VersionMinor>0</VersionMinor>
|
||||||
|
<VersionSDKMinor>1</VersionSDKMinor>
|
||||||
|
<VersionFeature>00</VersionFeature>
|
||||||
|
|
||||||
|
<VersionPrefix>$(VersionMajor).$(VersionMinor).$(VersionSDKMinor)$(VersionFeature)</VersionPrefix>
|
||||||
|
<PreReleaseVersionLabel>alpha</PreReleaseVersionLabel>
|
||||||
|
<PreReleaseVersionIteration>1</PreReleaseVersionIteration>
|
||||||
|
|
||||||
|
<MajorMinorVersion>$(VersionMajor).$(VersionMinor)</MajorMinorVersion>
|
||||||
|
<CliProductBandVersion>$(MajorMinorVersion).$(VersionSDKMinor)</CliProductBandVersion>
|
||||||
|
|
||||||
|
<FullNugetVersion>$(VersionPrefix)-$(PreReleaseVersionLabel)$(PreReleaseVersionIteration)-$(_BuildNumberLabels)</FullNugetVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<!-- Dependencies from https://github.com/dotnet/toolset -->
|
<!-- Dependencies from https://github.com/dotnet/toolset -->
|
||||||
|
|
|
@ -84,7 +84,6 @@ phases:
|
||||||
displayName: Build
|
displayName: Build
|
||||||
env:
|
env:
|
||||||
DOTNET_CLI_UI_LANGUAGE: $(_DOTNET_CLI_UI_LANGUAGE)
|
DOTNET_CLI_UI_LANGUAGE: $(_DOTNET_CLI_UI_LANGUAGE)
|
||||||
DropSuffix: $(_DropSuffix)
|
|
||||||
DOTNETCLIMSRC_READ_SAS_TOKEN: $(_DOTNETCLIMSRC_READ_SAS_TOKEN)
|
DOTNETCLIMSRC_READ_SAS_TOKEN: $(_DOTNETCLIMSRC_READ_SAS_TOKEN)
|
||||||
|
|
||||||
- ${{ if ne(parameters.agentOs, 'Windows_NT') }}:
|
- ${{ if ne(parameters.agentOs, 'Windows_NT') }}:
|
||||||
|
@ -104,7 +103,6 @@ phases:
|
||||||
$(_AdditionalBuildParameters)
|
$(_AdditionalBuildParameters)
|
||||||
displayName: Build
|
displayName: Build
|
||||||
env:
|
env:
|
||||||
DropSuffix: $(_DropSuffix)
|
|
||||||
DOTNETCLIMSRC_READ_SAS_TOKEN: $(_DOTNETCLIMSRC_READ_SAS_TOKEN)
|
DOTNETCLIMSRC_READ_SAS_TOKEN: $(_DOTNETCLIMSRC_READ_SAS_TOKEN)
|
||||||
|
|
||||||
- ${{ if or(eq(parameters.agentOs, 'Darwin'), eq(parameters.agentOs, 'FreeBSD')) }}:
|
- ${{ if or(eq(parameters.agentOs, 'Darwin'), eq(parameters.agentOs, 'FreeBSD')) }}:
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
<Import Project="targets\BranchInfo.props" />
|
<Import Project="targets\BranchInfo.props" />
|
||||||
<Import Project="..\redist\targets\BuildCoreSdkTasks.targets" />
|
<Import Project="..\redist\targets\BuildCoreSdkTasks.targets" />
|
||||||
<Import Project="..\redist\targets\GetRuntimeInformation.targets" />
|
<Import Project="..\redist\targets\GetRuntimeInformation.targets" />
|
||||||
<Import Project="..\redist\targets\Versions.targets" />
|
|
||||||
<Import Project="..\redist\targets\SetBuildDefaults.targets" />
|
<Import Project="..\redist\targets\SetBuildDefaults.targets" />
|
||||||
|
|
||||||
<Import Project="targets\FinishBuild.targets" />
|
<Import Project="targets\FinishBuild.targets" />
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<Target Name="FinalizeBuild"
|
<Target Name="FinalizeBuild"
|
||||||
DependsOnTargets="SetSdkVersionInfo"
|
|
||||||
BeforeTargets="AfterBuild">
|
BeforeTargets="AfterBuild">
|
||||||
<CopyBlobsToLatest FeedUrl="$(DotnetPublishSdkAssetsBlobFeedUrl)"
|
<CopyBlobsToLatest FeedUrl="$(DotnetPublishSdkAssetsBlobFeedUrl)"
|
||||||
AccountKey="$(DotNetPublishSdkAssetsBlobFeedKey)"
|
AccountKey="$(DotNetPublishSdkAssetsBlobFeedKey)"
|
||||||
|
|
|
@ -9,7 +9,7 @@ namespace Microsoft.DotNet.Cli.Build
|
||||||
public class GenerateMsiVersion : Task
|
public class GenerateMsiVersion : Task
|
||||||
{
|
{
|
||||||
[Required]
|
[Required]
|
||||||
public int CommitCount { get; set; }
|
public int VersionRevision { get; set; }
|
||||||
|
|
||||||
[Required]
|
[Required]
|
||||||
public int VersionMajor { get; set; }
|
public int VersionMajor { get; set; }
|
||||||
|
@ -30,7 +30,7 @@ namespace Microsoft.DotNet.Cli.Build
|
||||||
Major = VersionMajor,
|
Major = VersionMajor,
|
||||||
Minor = VersionMinor,
|
Minor = VersionMinor,
|
||||||
Patch = VersionPatch,
|
Patch = VersionPatch,
|
||||||
CommitCount = CommitCount
|
VersionRevision = VersionRevision
|
||||||
};
|
};
|
||||||
|
|
||||||
MsiVersion = buildVersion.GenerateMsiVersion();
|
MsiVersion = buildVersion.GenerateMsiVersion();
|
||||||
|
|
|
@ -8,7 +8,7 @@ namespace Microsoft.DotNet.Cli.Build
|
||||||
public virtual int Major { get; set; }
|
public virtual int Major { get; set; }
|
||||||
public virtual int Minor { get; set; }
|
public virtual int Minor { get; set; }
|
||||||
public virtual int Patch { get; set; }
|
public virtual int Patch { get; set; }
|
||||||
public virtual int CommitCount { get; set; }
|
public virtual int VersionRevision { get; set; }
|
||||||
|
|
||||||
public string GenerateMsiVersion()
|
public string GenerateMsiVersion()
|
||||||
{
|
{
|
||||||
|
@ -22,11 +22,11 @@ namespace Microsoft.DotNet.Cli.Build
|
||||||
// CLI major -> 6 bits
|
// CLI major -> 6 bits
|
||||||
// CLI minor -> 6 bits
|
// CLI minor -> 6 bits
|
||||||
// CLI patch -> 6 bits
|
// CLI patch -> 6 bits
|
||||||
// CLI commitcount -> 14 bits
|
// CLI VersionRevision -> 14 bits
|
||||||
var major = Major << 26;
|
var major = Major << 26;
|
||||||
var minor = Minor << 20;
|
var minor = Minor << 20;
|
||||||
var patch = Patch << 14;
|
var patch = Patch << 14;
|
||||||
var msiVersionNumber = major | minor | patch | CommitCount;
|
var msiVersionNumber = major | minor | patch | VersionRevision;
|
||||||
|
|
||||||
var msiMajor = (msiVersionNumber >> 24) & 0xFF;
|
var msiMajor = (msiVersionNumber >> 24) & 0xFF;
|
||||||
var msiMinor = (msiVersionNumber >> 16) & 0xFF;
|
var msiMinor = (msiVersionNumber >> 16) & 0xFF;
|
||||||
|
|
|
@ -21,7 +21,6 @@
|
||||||
|
|
||||||
<Import Project="targets\BuildCoreSdkTasks.targets" />
|
<Import Project="targets\BuildCoreSdkTasks.targets" />
|
||||||
<Import Project="targets\GetRuntimeInformation.targets" />
|
<Import Project="targets\GetRuntimeInformation.targets" />
|
||||||
<Import Project="targets\Versions.targets" />
|
|
||||||
<Import Project="targets\SetBuildDefaults.targets" />
|
<Import Project="targets\SetBuildDefaults.targets" />
|
||||||
<Import Project="targets\Branding.targets" />
|
<Import Project="targets\Branding.targets" />
|
||||||
<Import Project="targets\BundledTemplates.targets" />
|
<Import Project="targets\BundledTemplates.targets" />
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
InputFiles="$(VersionSvgTemplate)"
|
InputFiles="$(VersionSvgTemplate)"
|
||||||
DestinationFiles="$(VersionBadge)"
|
DestinationFiles="$(VersionBadge)"
|
||||||
ReplacementPatterns="ver_number"
|
ReplacementPatterns="ver_number"
|
||||||
ReplacementStrings="$(SdkVersion)" />
|
ReplacementStrings="$(Version)" />
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
<Target Name="SetBadgeProps" DependsOnTargets="GetCurrentRuntimeInformation">
|
<Target Name="SetBadgeProps" DependsOnTargets="GetCurrentRuntimeInformation">
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
<Project>
|
<Project>
|
||||||
<Target Name="SetSdkBrandingInfo" DependsOnTargets="SetSdkVersionInfo">
|
<Target Name="SetSdkBrandingInfo">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<BuildName>cli</BuildName>
|
<BuildName>cli</BuildName>
|
||||||
<SdkBrandName>Microsoft .NET Core SDK $(CliBrandingVersion)</SdkBrandName>
|
<SdkBrandName>Microsoft .NET Core SDK $(Version)</SdkBrandName>
|
||||||
<ToolsetBrandName>Microsoft .NET Core Toolset $(CliBrandingVersion)</ToolsetBrandName>
|
<ToolsetBrandName>Microsoft .NET Core Toolset $(Version)</ToolsetBrandName>
|
||||||
<MSBuildExtensionsBrandName>.NET Standard Support for Visual Studio 2015</MSBuildExtensionsBrandName>
|
<MSBuildExtensionsBrandName>.NET Standard Support for Visual Studio 2015</MSBuildExtensionsBrandName>
|
||||||
<SharedFrameworkBrandName>Microsoft .NET Core Runtime $(MicrosoftNETCoreAppRuntimePackageVersion)</SharedFrameworkBrandName>
|
<SharedFrameworkBrandName>Microsoft .NET Core Runtime $(MicrosoftNETCoreAppRuntimePackageVersion)</SharedFrameworkBrandName>
|
||||||
<NetCoreAppTargetingPackBrandName>Microsoft .NET Core Targeting Pack $(MicrosoftNETCoreAppRefPackageVersion)</NetCoreAppTargetingPackBrandName>
|
<NetCoreAppTargetingPackBrandName>Microsoft .NET Core Targeting Pack $(MicrosoftNETCoreAppRefPackageVersion)</NetCoreAppTargetingPackBrandName>
|
||||||
|
@ -13,10 +13,10 @@
|
||||||
<HostFxrBrandName>Microsoft .NET Core Host FX Resolver $(HostFxrVersion)</HostFxrBrandName>
|
<HostFxrBrandName>Microsoft .NET Core Host FX Resolver $(HostFxrVersion)</HostFxrBrandName>
|
||||||
<SharedFrameworkName>Microsoft.NETCore.App</SharedFrameworkName>
|
<SharedFrameworkName>Microsoft.NETCore.App</SharedFrameworkName>
|
||||||
<SharedFrameworkNugetName>$(SharedFrameworkName)</SharedFrameworkNugetName>
|
<SharedFrameworkNugetName>$(SharedFrameworkName)</SharedFrameworkNugetName>
|
||||||
<BundledTemplates31BrandName>Microsoft .NET Core 3.1 Templates $(CliBrandingVersion)</BundledTemplates31BrandName>
|
<BundledTemplates31BrandName>Microsoft .NET Core 3.1 Templates $(Version)</BundledTemplates31BrandName>
|
||||||
<BundledTemplates30BrandName>Microsoft .NET Core 3.0 Templates $(CliBrandingVersion)</BundledTemplates30BrandName>
|
<BundledTemplates30BrandName>Microsoft .NET Core 3.0 Templates $(Version)</BundledTemplates30BrandName>
|
||||||
<BundledTemplates22BrandName>Microsoft .NET Core 2.2 Templates $(CliBrandingVersion)</BundledTemplates22BrandName>
|
<BundledTemplates22BrandName>Microsoft .NET Core 2.2 Templates $(Version)</BundledTemplates22BrandName>
|
||||||
<BundledTemplates21BrandName>Microsoft .NET Core 2.1 Templates $(CliBrandingVersion)</BundledTemplates21BrandName>
|
<BundledTemplates21BrandName>Microsoft .NET Core 2.1 Templates $(Version)</BundledTemplates21BrandName>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,10 @@
|
||||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<Target Name="CalculateTemplatesVersions"
|
<Target Name="CalculateTemplatesVersions" DependsOnTargets="SetupWixProperties">
|
||||||
DependsOnTargets="SetSdkVersionInfo">
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<AspNetCore31VersionPreReleaseSeparator>$(AspNetCorePackageVersionFor31Templates.IndexOf('-'))</AspNetCore31VersionPreReleaseSeparator>
|
<AspNetCore31VersionPreReleaseSeparator>$(AspNetCorePackageVersionFor31Templates.IndexOf('-'))</AspNetCore31VersionPreReleaseSeparator>
|
||||||
<AspNetCore31VersionMajorMinorPatchVersion>$(AspNetCorePackageVersionFor31Templates)</AspNetCore31VersionMajorMinorPatchVersion>
|
<AspNetCore31VersionMajorMinorPatchVersion>$(AspNetCorePackageVersionFor31Templates)</AspNetCore31VersionMajorMinorPatchVersion>
|
||||||
<AspNetCore31VersionMajorMinorPatchVersion Condition=" '$(AspNetCore31VersionPreReleaseSeparator)' != -1 ">$(AspNetCorePackageVersionFor31Templates.Substring(0, $(AspNetCore31VersionPreReleaseSeparator)))</AspNetCore31VersionMajorMinorPatchVersion>
|
<AspNetCore31VersionMajorMinorPatchVersion Condition=" '$(AspNetCore31VersionPreReleaseSeparator)' != -1 ">$(AspNetCorePackageVersionFor31Templates.Substring(0, $(AspNetCore31VersionPreReleaseSeparator)))</AspNetCore31VersionMajorMinorPatchVersion>
|
||||||
<BundledTemplates31MSIVersion>$(AspNetCore31VersionMajorMinorPatchVersion).$(GitCommitCount)</BundledTemplates31MSIVersion>
|
<BundledTemplates31MSIVersion>$(AspNetCore31VersionMajorMinorPatchVersion).$(CombinedBuildNumberAndRevision)</BundledTemplates31MSIVersion>
|
||||||
<BundledTemplates31InstallPath>$(AspNetCore31VersionMajorMinorPatchVersion)</BundledTemplates31InstallPath>
|
<BundledTemplates31InstallPath>$(AspNetCore31VersionMajorMinorPatchVersion)</BundledTemplates31InstallPath>
|
||||||
<BundledTemplates31InstallPath Condition=" '$(AspNetCore31VersionPreReleaseSeparator)' != -1 ">$(BundledTemplates31InstallPath)-$(VersionSuffix)</BundledTemplates31InstallPath>
|
<BundledTemplates31InstallPath Condition=" '$(AspNetCore31VersionPreReleaseSeparator)' != -1 ">$(BundledTemplates31InstallPath)-$(VersionSuffix)</BundledTemplates31InstallPath>
|
||||||
<Templates31VersionPatchSeparatorIndex>$([MSBuild]::Add($(AspNetCore31VersionMajorMinorPatchVersion.IndexOf('.')), 1))</Templates31VersionPatchSeparatorIndex>
|
<Templates31VersionPatchSeparatorIndex>$([MSBuild]::Add($(AspNetCore31VersionMajorMinorPatchVersion.IndexOf('.')), 1))</Templates31VersionPatchSeparatorIndex>
|
||||||
|
@ -15,7 +14,7 @@
|
||||||
<AspNetCore30VersionPreReleaseSeparator>$(AspNetCorePackageVersionFor30Templates.IndexOf('-'))</AspNetCore30VersionPreReleaseSeparator>
|
<AspNetCore30VersionPreReleaseSeparator>$(AspNetCorePackageVersionFor30Templates.IndexOf('-'))</AspNetCore30VersionPreReleaseSeparator>
|
||||||
<AspNetCore30VersionMajorMinorPatchVersion>$(AspNetCorePackageVersionFor30Templates)</AspNetCore30VersionMajorMinorPatchVersion>
|
<AspNetCore30VersionMajorMinorPatchVersion>$(AspNetCorePackageVersionFor30Templates)</AspNetCore30VersionMajorMinorPatchVersion>
|
||||||
<AspNetCore30VersionMajorMinorPatchVersion Condition=" '$(AspNetCore30VersionPreReleaseSeparator)' != -1 ">$(AspNetCorePackageVersionFor30Templates.Substring(0, $(AspNetCore30VersionPreReleaseSeparator)))</AspNetCore30VersionMajorMinorPatchVersion>
|
<AspNetCore30VersionMajorMinorPatchVersion Condition=" '$(AspNetCore30VersionPreReleaseSeparator)' != -1 ">$(AspNetCorePackageVersionFor30Templates.Substring(0, $(AspNetCore30VersionPreReleaseSeparator)))</AspNetCore30VersionMajorMinorPatchVersion>
|
||||||
<BundledTemplates30MSIVersion>$(AspNetCore30VersionMajorMinorPatchVersion).$(GitCommitCount)</BundledTemplates30MSIVersion>
|
<BundledTemplates30MSIVersion>$(AspNetCore30VersionMajorMinorPatchVersion).$(CombinedBuildNumberAndRevision)</BundledTemplates30MSIVersion>
|
||||||
<BundledTemplates30InstallPath>$(AspNetCore30VersionMajorMinorPatchVersion)</BundledTemplates30InstallPath>
|
<BundledTemplates30InstallPath>$(AspNetCore30VersionMajorMinorPatchVersion)</BundledTemplates30InstallPath>
|
||||||
<BundledTemplates30InstallPath Condition=" '$(AspNetCore30VersionPreReleaseSeparator)' != -1 ">$(BundledTemplates30InstallPath)-$(VersionSuffix)</BundledTemplates30InstallPath>
|
<BundledTemplates30InstallPath Condition=" '$(AspNetCore30VersionPreReleaseSeparator)' != -1 ">$(BundledTemplates30InstallPath)-$(VersionSuffix)</BundledTemplates30InstallPath>
|
||||||
<Templates30VersionPatchSeparatorIndex>$([MSBuild]::Add($(AspNetCore30VersionMajorMinorPatchVersion.IndexOf('.')), 1))</Templates30VersionPatchSeparatorIndex>
|
<Templates30VersionPatchSeparatorIndex>$([MSBuild]::Add($(AspNetCore30VersionMajorMinorPatchVersion.IndexOf('.')), 1))</Templates30VersionPatchSeparatorIndex>
|
||||||
|
@ -25,7 +24,7 @@
|
||||||
<AspNetCore22VersionPreReleaseSeparator>$(AspNetCorePackageVersionFor22Templates.IndexOf('-'))</AspNetCore22VersionPreReleaseSeparator>
|
<AspNetCore22VersionPreReleaseSeparator>$(AspNetCorePackageVersionFor22Templates.IndexOf('-'))</AspNetCore22VersionPreReleaseSeparator>
|
||||||
<AspNetCore22VersionMajorMinorPatchVersion>$(AspNetCorePackageVersionFor22Templates)</AspNetCore22VersionMajorMinorPatchVersion>
|
<AspNetCore22VersionMajorMinorPatchVersion>$(AspNetCorePackageVersionFor22Templates)</AspNetCore22VersionMajorMinorPatchVersion>
|
||||||
<AspNetCore22VersionMajorMinorPatchVersion Condition=" '$(AspNetCore22VersionPreReleaseSeparator)' != -1 ">$(AspNetCorePackageVersionFor22Templates.Substring(0, $(AspNetCore22VersionPreReleaseSeparator)))</AspNetCore22VersionMajorMinorPatchVersion>
|
<AspNetCore22VersionMajorMinorPatchVersion Condition=" '$(AspNetCore22VersionPreReleaseSeparator)' != -1 ">$(AspNetCorePackageVersionFor22Templates.Substring(0, $(AspNetCore22VersionPreReleaseSeparator)))</AspNetCore22VersionMajorMinorPatchVersion>
|
||||||
<BundledTemplates22MSIVersion>$(AspNetCore22VersionMajorMinorPatchVersion).$(GitCommitCount)</BundledTemplates22MSIVersion>
|
<BundledTemplates22MSIVersion>$(AspNetCore22VersionMajorMinorPatchVersion).$(CombinedBuildNumberAndRevision)</BundledTemplates22MSIVersion>
|
||||||
<BundledTemplates22InstallPath>$(AspNetCore22VersionMajorMinorPatchVersion)</BundledTemplates22InstallPath>
|
<BundledTemplates22InstallPath>$(AspNetCore22VersionMajorMinorPatchVersion)</BundledTemplates22InstallPath>
|
||||||
<BundledTemplates22InstallPath Condition=" '$(AspNetCore22VersionPreReleaseSeparator)' != -1 ">$(BundledTemplates22InstallPath)-$(VersionSuffix)</BundledTemplates22InstallPath>
|
<BundledTemplates22InstallPath Condition=" '$(AspNetCore22VersionPreReleaseSeparator)' != -1 ">$(BundledTemplates22InstallPath)-$(VersionSuffix)</BundledTemplates22InstallPath>
|
||||||
<Templates22VersionPatchSeparatorIndex>$([MSBuild]::Add($(AspNetCore22VersionMajorMinorPatchVersion.IndexOf('.')), 1))</Templates22VersionPatchSeparatorIndex>
|
<Templates22VersionPatchSeparatorIndex>$([MSBuild]::Add($(AspNetCore22VersionMajorMinorPatchVersion.IndexOf('.')), 1))</Templates22VersionPatchSeparatorIndex>
|
||||||
|
@ -35,7 +34,7 @@
|
||||||
<AspNetCore21VersionPreReleaseSeparator>$(AspNetCorePackageVersionFor21Templates.IndexOf('-'))</AspNetCore21VersionPreReleaseSeparator>
|
<AspNetCore21VersionPreReleaseSeparator>$(AspNetCorePackageVersionFor21Templates.IndexOf('-'))</AspNetCore21VersionPreReleaseSeparator>
|
||||||
<AspNetCore21VersionMajorMinorPatchVersion>$(AspNetCorePackageVersionFor21Templates)</AspNetCore21VersionMajorMinorPatchVersion>
|
<AspNetCore21VersionMajorMinorPatchVersion>$(AspNetCorePackageVersionFor21Templates)</AspNetCore21VersionMajorMinorPatchVersion>
|
||||||
<AspNetCore21VersionMajorMinorPatchVersion Condition=" '$(AspNetCore21VersionPreReleaseSeparator)' != -1 ">$(AspNetCorePackageVersionFor21Templates.Substring(0, $(AspNetCore21VersionPreReleaseSeparator)))</AspNetCore21VersionMajorMinorPatchVersion>
|
<AspNetCore21VersionMajorMinorPatchVersion Condition=" '$(AspNetCore21VersionPreReleaseSeparator)' != -1 ">$(AspNetCorePackageVersionFor21Templates.Substring(0, $(AspNetCore21VersionPreReleaseSeparator)))</AspNetCore21VersionMajorMinorPatchVersion>
|
||||||
<BundledTemplates21MSIVersion>$(AspNetCore21VersionMajorMinorPatchVersion).$(GitCommitCount)</BundledTemplates21MSIVersion>
|
<BundledTemplates21MSIVersion>$(AspNetCore21VersionMajorMinorPatchVersion).$(CombinedBuildNumberAndRevision)</BundledTemplates21MSIVersion>
|
||||||
<BundledTemplates21InstallPath>$(AspNetCore21VersionMajorMinorPatchVersion)</BundledTemplates21InstallPath>
|
<BundledTemplates21InstallPath>$(AspNetCore21VersionMajorMinorPatchVersion)</BundledTemplates21InstallPath>
|
||||||
<BundledTemplates21InstallPath Condition=" '$(AspNetCore21VersionPreReleaseSeparator)' != -1 ">$(BundledTemplates21InstallPath)-$(VersionSuffix)</BundledTemplates21InstallPath>
|
<BundledTemplates21InstallPath Condition=" '$(AspNetCore21VersionPreReleaseSeparator)' != -1 ">$(BundledTemplates21InstallPath)-$(VersionSuffix)</BundledTemplates21InstallPath>
|
||||||
<Templates21VersionPatchSeparatorIndex>$([MSBuild]::Add($(AspNetCore21VersionMajorMinorPatchVersion.IndexOf('.')), 1))</Templates21VersionPatchSeparatorIndex>
|
<Templates21VersionPatchSeparatorIndex>$([MSBuild]::Add($(AspNetCore21VersionMajorMinorPatchVersion.IndexOf('.')), 1))</Templates21VersionPatchSeparatorIndex>
|
||||||
|
|
|
@ -134,7 +134,7 @@
|
||||||
|
|
||||||
<!-- Move symbols to separate folder, they are not included in the layout but are published separately -->
|
<!-- Move symbols to separate folder, they are not included in the layout but are published separately -->
|
||||||
<Move SourceFiles="@(PdbsToMove)"
|
<Move SourceFiles="@(PdbsToMove)"
|
||||||
DestinationFiles="@(PdbsToMove->'$(ArtifactsSymStoreDirectory)/sdk/$(SdkVersion)/%(RecursiveDir)%(Filename)%(Extension)')" />
|
DestinationFiles="@(PdbsToMove->'$(ArtifactsSymStoreDirectory)/sdk/$(Version)/%(RecursiveDir)%(Filename)%(Extension)')" />
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
<Target Name="ChmodLayout"
|
<Target Name="ChmodLayout"
|
||||||
|
|
|
@ -36,8 +36,8 @@
|
||||||
<_NETCoreAppTargetFrameworkVersion>$(_NETCoreAppPackageVersion.Split('.')[0]).$(_NETCoreAppPackageVersion.Split('.')[1])</_NETCoreAppTargetFrameworkVersion>
|
<_NETCoreAppTargetFrameworkVersion>$(_NETCoreAppPackageVersion.Split('.')[0]).$(_NETCoreAppPackageVersion.Split('.')[1])</_NETCoreAppTargetFrameworkVersion>
|
||||||
<_NETStandardTargetFrameworkVersion>$(_NETStandardLibraryPackageVersion.Split('.')[0]).$(_NETStandardLibraryPackageVersion.Split('.')[1])</_NETStandardTargetFrameworkVersion>
|
<_NETStandardTargetFrameworkVersion>$(_NETStandardLibraryPackageVersion.Split('.')[0]).$(_NETStandardLibraryPackageVersion.Split('.')[1])</_NETStandardTargetFrameworkVersion>
|
||||||
|
|
||||||
<_NETCoreSdkBeingBuiltIsPreview Condition=" '$(DropSuffix)' != 'true' ">true</_NETCoreSdkBeingBuiltIsPreview>
|
<_NETCoreSdkBeingBuiltIsPreview Condition=" '$(DotNetFinalVersionKind)' != 'release' ">true</_NETCoreSdkBeingBuiltIsPreview>
|
||||||
<_NETCoreSdkBeingBuiltIsPreview Condition=" '$(DropSuffix)' == 'true' ">false</_NETCoreSdkBeingBuiltIsPreview>
|
<_NETCoreSdkBeingBuiltIsPreview Condition=" '$(DotNetFinalVersionKind)' == 'release' ">false</_NETCoreSdkBeingBuiltIsPreview>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
@ -157,7 +157,7 @@ Copyright (c) .NET Foundation. All rights reserved.
|
||||||
<BundledNETStandardPackageVersion>$(_NETStandardLibraryPackageVersion)</BundledNETStandardPackageVersion>
|
<BundledNETStandardPackageVersion>$(_NETStandardLibraryPackageVersion)</BundledNETStandardPackageVersion>
|
||||||
<BundledNETCorePlatformsPackageVersion>$(_NETCorePlatformsPackageVersion)</BundledNETCorePlatformsPackageVersion>
|
<BundledNETCorePlatformsPackageVersion>$(_NETCorePlatformsPackageVersion)</BundledNETCorePlatformsPackageVersion>
|
||||||
<BundledRuntimeIdentifierGraphFile>%24(MSBuildThisFileDirectory)RuntimeIdentifierGraph.json</BundledRuntimeIdentifierGraphFile>
|
<BundledRuntimeIdentifierGraphFile>%24(MSBuildThisFileDirectory)RuntimeIdentifierGraph.json</BundledRuntimeIdentifierGraphFile>
|
||||||
<NETCoreSdkVersion>$(SdkVersion)</NETCoreSdkVersion>
|
<NETCoreSdkVersion>$(Version)</NETCoreSdkVersion>
|
||||||
<NETCoreSdkRuntimeIdentifier>$(ProductMonikerRid)</NETCoreSdkRuntimeIdentifier>
|
<NETCoreSdkRuntimeIdentifier>$(ProductMonikerRid)</NETCoreSdkRuntimeIdentifier>
|
||||||
<_NETCoreSdkIsPreview>$(_NETCoreSdkBeingBuiltIsPreview)</_NETCoreSdkIsPreview>
|
<_NETCoreSdkIsPreview>$(_NETCoreSdkBeingBuiltIsPreview)</_NETCoreSdkIsPreview>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
|
@ -7,8 +7,7 @@
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<Target Name="SetupDebProps"
|
<Target Name="SetupDebProps"
|
||||||
DependsOnTargets="SetSdkVersionInfo;
|
DependsOnTargets="GetCurrentRuntimeInformation;
|
||||||
GetCurrentRuntimeInformation;
|
|
||||||
SetupFileExtensions;
|
SetupFileExtensions;
|
||||||
CalculateLinuxNativeInstallerDependencyVersions;
|
CalculateLinuxNativeInstallerDependencyVersions;
|
||||||
SetSdkBrandingInfo">
|
SetSdkBrandingInfo">
|
||||||
|
@ -172,7 +171,7 @@
|
||||||
<ReplacementString>$(AspNetCoreRefVersionWithTilde)</ReplacementString>
|
<ReplacementString>$(AspNetCoreRefVersionWithTilde)</ReplacementString>
|
||||||
</DebianConfigTokenValues>
|
</DebianConfigTokenValues>
|
||||||
<DebianPostInstTokenValues Include="%SDK_VERSION%">
|
<DebianPostInstTokenValues Include="%SDK_VERSION%">
|
||||||
<ReplacementString>$(SdkVersion)</ReplacementString>
|
<ReplacementString>$(Version)</ReplacementString>
|
||||||
</DebianPostInstTokenValues>
|
</DebianPostInstTokenValues>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
@ -264,7 +263,7 @@
|
||||||
|
|
||||||
<!-- Create layout: Man Pages -->
|
<!-- Create layout: Man Pages -->
|
||||||
<Copy
|
<Copy
|
||||||
DestinationFiles="@(SdkDebManPageFiles->'$(LayoutDocsDir)/%(RecursiveDir)%(Filename)-$(SdkVersion)%(Extension)')"
|
DestinationFiles="@(SdkDebManPageFiles->'$(LayoutDocsDir)/%(RecursiveDir)%(Filename)-$(Version)%(Extension)')"
|
||||||
SourceFiles="@(SdkDebManPageFiles)"
|
SourceFiles="@(SdkDebManPageFiles)"
|
||||||
OverwriteReadOnlyFiles="True"
|
OverwriteReadOnlyFiles="True"
|
||||||
SkipUnchangedFiles="False"
|
SkipUnchangedFiles="False"
|
||||||
|
@ -291,7 +290,7 @@
|
||||||
InputDirectory="$(LayoutDirectory)"
|
InputDirectory="$(LayoutDirectory)"
|
||||||
OutputDirectory="$(DotNetDebToolOutputDirectory)"
|
OutputDirectory="$(DotNetDebToolOutputDirectory)"
|
||||||
PackageName="$(SdkDebianPackageName)"
|
PackageName="$(SdkDebianPackageName)"
|
||||||
PackageVersion="$(SdkVersion)"
|
PackageVersion="$(Version)"
|
||||||
WorkingDirectory="$(DotnetDebToolDir)" />
|
WorkingDirectory="$(DotnetDebToolDir)" />
|
||||||
|
|
||||||
<!-- Copy SDK package to output -->
|
<!-- Copy SDK package to output -->
|
||||||
|
|
|
@ -22,9 +22,9 @@
|
||||||
<NETStandardTargetingPackBlobVersion>3.0.0</NETStandardTargetingPackBlobVersion>
|
<NETStandardTargetingPackBlobVersion>3.0.0</NETStandardTargetingPackBlobVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<Target Name="SetupBundledComponents" DependsOnTargets="GetCurrentRuntimeInformation;SetupFileExtensions;SetSdkVersionInfo;SetBuildDefaults">
|
<Target Name="SetupBundledComponents" DependsOnTargets="GetCurrentRuntimeInformation;SetupFileExtensions;SetBuildDefaults">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<SdkOutputDirectory>$(RedistLayoutPath)sdk\$(SdkVersion)\</SdkOutputDirectory>
|
<SdkOutputDirectory>$(RedistLayoutPath)sdk\$(Version)\</SdkOutputDirectory>
|
||||||
|
|
||||||
<InternalBuild Condition="$(SYSTEM_TEAMPROJECT) == 'internal'">true</InternalBuild>
|
<InternalBuild Condition="$(SYSTEM_TEAMPROJECT) == 'internal'">true</InternalBuild>
|
||||||
<InternalBaseURL Condition="$(SYSTEM_TEAMPROJECT) == 'internal'">https://dotnetclimsrc.blob.core.windows.net/dotnet/</InternalBaseURL>
|
<InternalBaseURL Condition="$(SYSTEM_TEAMPROJECT) == 'internal'">https://dotnetclimsrc.blob.core.windows.net/dotnet/</InternalBaseURL>
|
||||||
|
@ -230,7 +230,7 @@
|
||||||
<BundledLayoutComponent Include="ToolsetArchive">
|
<BundledLayoutComponent Include="ToolsetArchive">
|
||||||
<BaseUrl>$(DotnetToolsetBlobRootUrl)Toolset/$(MicrosoftDotnetToolsetInternalPackageVersion)</BaseUrl>
|
<BaseUrl>$(DotnetToolsetBlobRootUrl)Toolset/$(MicrosoftDotnetToolsetInternalPackageVersion)</BaseUrl>
|
||||||
<DownloadFileName>dotnet-toolset-internal-$(MicrosoftDotnetToolsetInternalPackageVersion).zip</DownloadFileName>
|
<DownloadFileName>dotnet-toolset-internal-$(MicrosoftDotnetToolsetInternalPackageVersion).zip</DownloadFileName>
|
||||||
<RelativeLayoutPath>sdk/$(SdkVersion)</RelativeLayoutPath>
|
<RelativeLayoutPath>sdk/$(Version)</RelativeLayoutPath>
|
||||||
</BundledLayoutComponent>
|
</BundledLayoutComponent>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
@ -405,7 +405,7 @@
|
||||||
<ReplacementString>"version": "$(MicrosoftNETCoreAppRuntimePackageVersion)"</ReplacementString>
|
<ReplacementString>"version": "$(MicrosoftNETCoreAppRuntimePackageVersion)"</ReplacementString>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ToolRuntimeConfigPath Include="$(RedistLayoutPath)sdk/$(SdkVersion)/**/*.runtimeconfig.json" />
|
<ToolRuntimeConfigPath Include="$(RedistLayoutPath)sdk/$(Version)/**/*.runtimeconfig.json" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ReplaceFileContents
|
<ReplaceFileContents
|
||||||
InputFiles="@(ToolRuntimeConfigPath)"
|
InputFiles="@(ToolRuntimeConfigPath)"
|
||||||
|
@ -414,9 +414,15 @@
|
||||||
ReplacementStrings="$(ReplacementString)" />
|
ReplacementStrings="$(ReplacementString)" />
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
<Target Name="GenerateVersionFile" DependsOnTargets="SetupBundledComponents;GetCoreSdkGitCommitInfo">
|
<Target Name="GenerateVersionFile" DependsOnTargets="SetupBundledComponents">
|
||||||
|
<Exec Command="git rev-parse HEAD"
|
||||||
|
ConsoleToMSBuild="true"
|
||||||
|
Condition=" '$(GitCommitHash)' == '' ">
|
||||||
|
<Output TaskParameter="ConsoleOutput" PropertyName="GitCommitHash" />
|
||||||
|
</Exec>
|
||||||
|
|
||||||
<WriteLinesToFile File="$(SdkOutputDirectory).version"
|
<WriteLinesToFile File="$(SdkOutputDirectory).version"
|
||||||
Lines="$(GitCommitHash);$(SdkVersion);$(Rid)"
|
Lines="$(GitCommitHash);$(Version);$(Rid)"
|
||||||
Overwrite="true" />
|
Overwrite="true" />
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
|
@ -497,11 +503,11 @@
|
||||||
|
|
||||||
<!-- Create "SDK Internal" layout to create the MSI to bundle -->
|
<!-- Create "SDK Internal" layout to create the MSI to bundle -->
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<SdkInternalFiles Include="$(RedistLayoutPath)sdk/$(SdkVersion)/**/*.*"/>
|
<SdkInternalFiles Include="$(RedistLayoutPath)sdk/$(Version)/**/*.*"/>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<Copy SourceFiles="@(SdkInternalFiles)"
|
<Copy SourceFiles="@(SdkInternalFiles)"
|
||||||
DestinationFiles="@(SdkInternalFiles -> '$(SdkInternalLayoutPath)sdk\$(SdkVersion)\%(RecursiveDir)%(Filename)%(Extension)')"/>
|
DestinationFiles="@(SdkInternalFiles -> '$(SdkInternalLayoutPath)sdk\$(Version)\%(RecursiveDir)%(Filename)%(Extension)')"/>
|
||||||
|
|
||||||
</Target>
|
</Target>
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
@ -54,19 +54,38 @@
|
||||||
<SdkLayoutOutputDirectory>$(LayoutDirectory)$(ArtifactNameSdk)</SdkLayoutOutputDirectory>
|
<SdkLayoutOutputDirectory>$(LayoutDirectory)$(ArtifactNameSdk)</SdkLayoutOutputDirectory>
|
||||||
<MSBuildExtensionsOutputDirectory>$(LayoutDirectory)MSBuildExtensions</MSBuildExtensionsOutputDirectory>-->
|
<MSBuildExtensionsOutputDirectory>$(LayoutDirectory)MSBuildExtensions</MSBuildExtensionsOutputDirectory>-->
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<Exec Command="git rev-list --count HEAD"
|
||||||
|
ConsoleToMSBuild="true"
|
||||||
|
Condition=" '$(GitCommitCount)' == '' ">
|
||||||
|
<Output TaskParameter="ConsoleOutput" PropertyName="GitCommitCount" />
|
||||||
|
</Exec>
|
||||||
|
|
||||||
|
<Error Condition=" '$(OfficialBuild)' == 'true' And '$(_PatchNumber)' == '' "
|
||||||
|
Text="_PatchNumber should not be empty in an official build. Check if there were changes in Arcade." />
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<GitCommitCount>$(GitCommitCount.PadLeft(6,'0'))</GitCommitCount>
|
||||||
|
|
||||||
|
<!-- This number comes from arcade and combines the date based build number id and the revision (incremental number per day) -->
|
||||||
|
<CombinedBuildNumberAndRevision>$(_PatchNumber)</CombinedBuildNumberAndRevision>
|
||||||
|
<!-- Fallback to commit count when patch number is not set. This happens only during CI. -->
|
||||||
|
<CombinedBuildNumberAndRevision Condition=" '$(CombinedBuildNumberAndRevision)' == '' ">$(GitCommitCount)</CombinedBuildNumberAndRevision>
|
||||||
|
<SDKBundleVersion>$(VersionPrefix).$(CombinedBuildNumberAndRevision)</SDKBundleVersion>
|
||||||
|
</PropertyGroup>
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
<Target Name="MsiTargetsSetupInputOutputs"
|
<Target Name="MsiTargetsSetupInputOutputs"
|
||||||
DependsOnTargets="GenerateLayout;SetupWixProperties;GetCoreSdkGitCommitInfo">
|
DependsOnTargets="GenerateLayout;SetupWixProperties">
|
||||||
<!-- Consumed By Publish -->
|
<!-- Consumed By Publish -->
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<GeneratedInstallers Include="$(SdkMSIInstallerFile);$(Templates31MSIInstallerFile);$(Templates30MSIInstallerFile);$(Templates22MSIInstallerFile);$(Templates21MSIInstallerFile);$(CombinedFrameworkSdkHostMSIInstallerFile);$(SdkPlaceholderMSIInstallerFile)" />
|
<GeneratedInstallers Include="$(SdkMSIInstallerFile);$(Templates31MSIInstallerFile);$(Templates30MSIInstallerFile);$(Templates22MSIInstallerFile);$(Templates21MSIInstallerFile);$(CombinedFrameworkSdkHostMSIInstallerFile);$(SdkPlaceholderMSIInstallerFile)" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<GenerateMsiVersion CommitCount="$(GitCommitCount)"
|
<GenerateMsiVersion VersionRevision="$(CombinedBuildNumberAndRevision)"
|
||||||
VersionMajor="$(VersionMajor)"
|
VersionMajor="$(VersionMajor)"
|
||||||
VersionMinor="$(VersionMinor)"
|
VersionMinor="$(VersionMinor)"
|
||||||
VersionPatch="$(VersionPatch)">
|
VersionPatch="$(VersionFeature)">
|
||||||
<Output TaskParameter="MsiVersion" PropertyName="MsiVersion" />
|
<Output TaskParameter="MsiVersion" PropertyName="MsiVersion" />
|
||||||
</GenerateMsiVersion>
|
</GenerateMsiVersion>
|
||||||
|
|
||||||
|
@ -144,7 +163,7 @@
|
||||||
'$(ToolsetBrandName)' ^
|
'$(ToolsetBrandName)' ^
|
||||||
'$(MsiVersion)' ^
|
'$(MsiVersion)' ^
|
||||||
'$(SDKBundleVersion)' ^
|
'$(SDKBundleVersion)' ^
|
||||||
'$(NugetVersion)' ^
|
'$(Version)' ^
|
||||||
'$(SdkInstallerUpgradeCode)' ^
|
'$(SdkInstallerUpgradeCode)' ^
|
||||||
'$(SdkDependencyKeyName)' ^
|
'$(SdkDependencyKeyName)' ^
|
||||||
'$(Architecture)' ^
|
'$(Architecture)' ^
|
||||||
|
@ -164,7 +183,7 @@
|
||||||
'$(SdkBrandName)' ^
|
'$(SdkBrandName)' ^
|
||||||
'$(MsiVersion)' ^
|
'$(MsiVersion)' ^
|
||||||
'$(SDKBundleVersion)' ^
|
'$(SDKBundleVersion)' ^
|
||||||
'$(NugetVersion)' ^
|
'$(Version)' ^
|
||||||
'$(SdkPlaceholderInstallerUpgradeCode)' ^
|
'$(SdkPlaceholderInstallerUpgradeCode)' ^
|
||||||
'$(SdkPlaceholderDependencyKeyName)' ^
|
'$(SdkPlaceholderDependencyKeyName)' ^
|
||||||
'$(Architecture)' ^
|
'$(Architecture)' ^
|
||||||
|
@ -264,7 +283,7 @@
|
||||||
'$(SdkBrandName)' ^
|
'$(SdkBrandName)' ^
|
||||||
'$(MsiVersion)' ^
|
'$(MsiVersion)' ^
|
||||||
'$(SDKBundleVersion)' ^
|
'$(SDKBundleVersion)' ^
|
||||||
'$(NugetVersion)' ^
|
'$(Version)' ^
|
||||||
'$(MicrosoftWindowsDesktopAppRuntimePackageVersion)' ^
|
'$(MicrosoftWindowsDesktopAppRuntimePackageVersion)' ^
|
||||||
'$(CombinedFrameworkSDKHostInstallerUpgradeCode)' ^
|
'$(CombinedFrameworkSDKHostInstallerUpgradeCode)' ^
|
||||||
'$(SdkDependencyKeyName)' ^
|
'$(SdkDependencyKeyName)' ^
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<Project>
|
<Project>
|
||||||
<Target Name="SetupPKGProps" DependsOnTargets="SetSdkVersionInfo;GetCurrentRuntimeInformation;SetupFileExtensions">
|
<Target Name="SetupPKGProps" DependsOnTargets="GetCurrentRuntimeInformation;SetupFileExtensions">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<PkgIntermediateDirectory>$(IntermediateOutputPath)pkgs/$(SdkVersion)</PkgIntermediateDirectory>
|
<PkgIntermediateDirectory>$(IntermediateOutputPath)pkgs/$(Version)</PkgIntermediateDirectory>
|
||||||
|
|
||||||
<!-- Properties for pkg build -->
|
<!-- Properties for pkg build -->
|
||||||
<SharedHostComponentId>com.microsoft.dotnet.sharedhost.$(SharedHostVersion).component.osx.x64</SharedHostComponentId>
|
<SharedHostComponentId>com.microsoft.dotnet.sharedhost.$(SharedHostVersion).component.osx.x64</SharedHostComponentId>
|
||||||
|
@ -10,8 +10,8 @@
|
||||||
<NetCoreAppTargetingPackComponentId>com.microsoft.dotnet.pack.targeting.$(MicrosoftNETCoreAppRefPackageVersion).component.osx.x64</NetCoreAppTargetingPackComponentId>
|
<NetCoreAppTargetingPackComponentId>com.microsoft.dotnet.pack.targeting.$(MicrosoftNETCoreAppRefPackageVersion).component.osx.x64</NetCoreAppTargetingPackComponentId>
|
||||||
<NetCoreAppHostPackComponentId>com.microsoft.dotnet.pack.apphost.$(MicrosoftNETCoreAppHostPackageVersion).component.osx.x64</NetCoreAppHostPackComponentId>
|
<NetCoreAppHostPackComponentId>com.microsoft.dotnet.pack.apphost.$(MicrosoftNETCoreAppHostPackageVersion).component.osx.x64</NetCoreAppHostPackComponentId>
|
||||||
<NetStandardTargetingPackComponentId>com.microsoft.standard.pack.targeting.$(NETStandardLibraryRefPackageVersion).component.osx.x64</NetStandardTargetingPackComponentId>
|
<NetStandardTargetingPackComponentId>com.microsoft.standard.pack.targeting.$(NETStandardLibraryRefPackageVersion).component.osx.x64</NetStandardTargetingPackComponentId>
|
||||||
<SdkComponentId>com.microsoft.dotnet.dev.$(SdkVersion).component.osx.x64</SdkComponentId>
|
<SdkComponentId>com.microsoft.dotnet.dev.$(Version).component.osx.x64</SdkComponentId>
|
||||||
<SdkProductArchiveId>com.microsoft.dotnet.dev.$(SdkVersion).osx.x64</SdkProductArchiveId>
|
<SdkProductArchiveId>com.microsoft.dotnet.dev.$(Version).osx.x64</SdkProductArchiveId>
|
||||||
|
|
||||||
<PkgInstallDirectory>/usr/local/share/dotnet</PkgInstallDirectory>
|
<PkgInstallDirectory>/usr/local/share/dotnet</PkgInstallDirectory>
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@
|
||||||
<ReplacementString>$(SdkComponentId)</ReplacementString>
|
<ReplacementString>$(SdkComponentId)</ReplacementString>
|
||||||
</DistributionTemplateReplacement>
|
</DistributionTemplateReplacement>
|
||||||
<DistributionTemplateReplacement Include="{CLISdkNugetVersion}">
|
<DistributionTemplateReplacement Include="{CLISdkNugetVersion}">
|
||||||
<ReplacementString>$(SdkVersion)</ReplacementString>
|
<ReplacementString>$(Version)</ReplacementString>
|
||||||
</DistributionTemplateReplacement>
|
</DistributionTemplateReplacement>
|
||||||
<DistributionTemplateReplacement Include="{CLISdkBrandName}">
|
<DistributionTemplateReplacement Include="{CLISdkBrandName}">
|
||||||
<ReplacementString>$(SdkBrandName)</ReplacementString>
|
<ReplacementString>$(SdkBrandName)</ReplacementString>
|
||||||
|
@ -87,11 +87,11 @@
|
||||||
</DistributionTemplateReplacement>
|
</DistributionTemplateReplacement>
|
||||||
|
|
||||||
<PostInstallScriptReplacement Include="%SDK_VERSION%">
|
<PostInstallScriptReplacement Include="%SDK_VERSION%">
|
||||||
<ReplacementString>$(SdkVersion)</ReplacementString>
|
<ReplacementString>$(Version)</ReplacementString>
|
||||||
</PostInstallScriptReplacement>
|
</PostInstallScriptReplacement>
|
||||||
|
|
||||||
<ResourcesReplacement Include="{DOTNETSDKVERSION}">
|
<ResourcesReplacement Include="{DOTNETSDKVERSION}">
|
||||||
<ReplacementString>$(SdkVersion)</ReplacementString>
|
<ReplacementString>$(Version)</ReplacementString>
|
||||||
</ResourcesReplacement>
|
</ResourcesReplacement>
|
||||||
<ResourcesReplacement Include="{DOTNETRUNTIMEVERSION}">
|
<ResourcesReplacement Include="{DOTNETRUNTIMEVERSION}">
|
||||||
<ReplacementString>$(MicrosoftNETCoreAppRuntimePackageVersion)</ReplacementString>
|
<ReplacementString>$(MicrosoftNETCoreAppRuntimePackageVersion)</ReplacementString>
|
||||||
|
@ -162,7 +162,7 @@
|
||||||
<Exec Command="pkgbuild \
|
<Exec Command="pkgbuild \
|
||||||
--root '$(SdkInternalLayoutPath)' \
|
--root '$(SdkInternalLayoutPath)' \
|
||||||
--identifier '$(SdkComponentId)' \
|
--identifier '$(SdkComponentId)' \
|
||||||
--version '$(SdkVersion)' \
|
--version '$(Version)' \
|
||||||
--install-location '$(PkgInstallDirectory)' \
|
--install-location '$(PkgInstallDirectory)' \
|
||||||
--scripts '$(SdkPkgDestinationScriptsDirectory)' \
|
--scripts '$(SdkPkgDestinationScriptsDirectory)' \
|
||||||
'$(SdkPKGInstallerFile)'" />
|
'$(SdkPKGInstallerFile)'" />
|
||||||
|
@ -201,7 +201,7 @@
|
||||||
ReplacementStrings="@(DistributionTemplateReplacement -> '%(ReplacementString)')" />
|
ReplacementStrings="@(DistributionTemplateReplacement -> '%(ReplacementString)')" />
|
||||||
|
|
||||||
<Exec Command="productbuild \
|
<Exec Command="productbuild \
|
||||||
--version '$(SdkVersion)' \
|
--version '$(Version)' \
|
||||||
--identifier '$(SdkProductArchiveId)' \
|
--identifier '$(SdkProductArchiveId)' \
|
||||||
--package-path '$(PkgIntermediateDirectory)' \
|
--package-path '$(PkgIntermediateDirectory)' \
|
||||||
--resources '$(SdkProductArchiveResourcesDirectory)' \
|
--resources '$(SdkProductArchiveResourcesDirectory)' \
|
||||||
|
|
|
@ -111,7 +111,7 @@
|
||||||
<ReplacementString>$(AspNetTargetingPackRpmPackageName)</ReplacementString>
|
<ReplacementString>$(AspNetTargetingPackRpmPackageName)</ReplacementString>
|
||||||
</SDKTokenValue>
|
</SDKTokenValue>
|
||||||
<SDKTokenValue Include="%SDK_NUGET_VERSION%">
|
<SDKTokenValue Include="%SDK_NUGET_VERSION%">
|
||||||
<ReplacementString>$(SdkVersion)</ReplacementString>
|
<ReplacementString>$(Version)</ReplacementString>
|
||||||
</SDKTokenValue>
|
</SDKTokenValue>
|
||||||
<SDKTokenValue Include="%CLI_SDK_BRAND_NAME%">
|
<SDKTokenValue Include="%CLI_SDK_BRAND_NAME%">
|
||||||
<ReplacementString>$(SdkBrandName)</ReplacementString>
|
<ReplacementString>$(SdkBrandName)</ReplacementString>
|
||||||
|
@ -121,7 +121,7 @@
|
||||||
</SDKTokenValue>
|
</SDKTokenValue>
|
||||||
|
|
||||||
<AfterInstallHostTokenValue Include="%SDK_VERSION%">
|
<AfterInstallHostTokenValue Include="%SDK_VERSION%">
|
||||||
<ReplacementString>$(SdkVersion)</ReplacementString>
|
<ReplacementString>$(Version)</ReplacementString>
|
||||||
</AfterInstallHostTokenValue>
|
</AfterInstallHostTokenValue>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
@ -175,11 +175,11 @@
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
<Target Name="SetupRpmProps"
|
<Target Name="SetupRpmProps"
|
||||||
DependsOnTargets="SetSdkVersionInfo;CalculateLinuxNativeInstallerDependencyVersions;GetCurrentRuntimeInformation;SetupFileExtensions">
|
DependsOnTargets="CalculateLinuxNativeInstallerDependencyVersions;GetCurrentRuntimeInformation;SetupFileExtensions">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<SdkRpmPackageVersion>$(MajorMinorVersion)</SdkRpmPackageVersion>
|
<SdkRpmPackageVersion>$(MajorMinorVersion)</SdkRpmPackageVersion>
|
||||||
<SdkRpmPackageName>$(ArtifactNameCombinedHostHostFxrFrameworkSdk)-$(SdkRpmPackageVersion)</SdkRpmPackageName>
|
<SdkRpmPackageName>$(ArtifactNameCombinedHostHostFxrFrameworkSdk)-$(SdkRpmPackageVersion)</SdkRpmPackageName>
|
||||||
<RpmPackageVersion>$(SdkVersion)</RpmPackageVersion>
|
<RpmPackageVersion>$(Version)</RpmPackageVersion>
|
||||||
<InputRoot>$(RedistLayoutPath)sdk/</InputRoot>
|
<InputRoot>$(RedistLayoutPath)sdk/</InputRoot>
|
||||||
<DotnetNewTemplatesRoot>$(RedistLayoutPath)templates/</DotnetNewTemplatesRoot>
|
<DotnetNewTemplatesRoot>$(RedistLayoutPath)templates/</DotnetNewTemplatesRoot>
|
||||||
<SdkRPMInstallerFile>$(ArtifactsShippingPackagesDir)$(DistroSpecificArtifactNameWithVersionCombinedHostHostFxrFrameworkSdk)$(InstallerExtension)</SdkRPMInstallerFile>
|
<SdkRPMInstallerFile>$(ArtifactsShippingPackagesDir)$(DistroSpecificArtifactNameWithVersionCombinedHostHostFxrFrameworkSdk)$(InstallerExtension)</SdkRPMInstallerFile>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<Project>
|
<Project>
|
||||||
<Target Name="GetCurrentRuntimeInformation" DependsOnTargets="SetSdkVersionInfo">
|
<Target Name="GetCurrentRuntimeInformation">
|
||||||
<GetCurrentRuntimeInformation>
|
<GetCurrentRuntimeInformation>
|
||||||
<Output TaskParameter="Rid" PropertyName="HostRid" />
|
<Output TaskParameter="Rid" PropertyName="HostRid" />
|
||||||
<Output TaskParameter="OSName" PropertyName="HostOSName" />
|
<Output TaskParameter="OSName" PropertyName="HostOSName" />
|
||||||
|
@ -39,13 +39,13 @@
|
||||||
<ArtifactNameSdk>dotnet-sdk-internal</ArtifactNameSdk>
|
<ArtifactNameSdk>dotnet-sdk-internal</ArtifactNameSdk>
|
||||||
<ArtifactNameCombinedHostHostFxrFrameworkSdk>dotnet-sdk</ArtifactNameCombinedHostHostFxrFrameworkSdk>
|
<ArtifactNameCombinedHostHostFxrFrameworkSdk>dotnet-sdk</ArtifactNameCombinedHostHostFxrFrameworkSdk>
|
||||||
|
|
||||||
<ArtifactNameWithVersionSdk>$(ArtifactNameSdk)-$(SdkVersion)-$(ProductMonikerRid)</ArtifactNameWithVersionSdk>
|
<ArtifactNameWithVersionSdk>$(ArtifactNameSdk)-$(Version)-$(ProductMonikerRid)</ArtifactNameWithVersionSdk>
|
||||||
<ArtifactNameWithVersionMSBuildExtensions>dotnet-standard-support-vs2015-$(SdkVersion)-$(ProductMonikerRid)</ArtifactNameWithVersionMSBuildExtensions>
|
<ArtifactNameWithVersionMSBuildExtensions>dotnet-standard-support-vs2015-$(Version)-$(ProductMonikerRid)</ArtifactNameWithVersionMSBuildExtensions>
|
||||||
<ArtifactNameWithVersionCombinedHostHostFxrFrameworkSdk>$(ArtifactNameCombinedHostHostFxrFrameworkSdk)-$(SdkVersion)-$(ProductMonikerRid)</ArtifactNameWithVersionCombinedHostHostFxrFrameworkSdk>
|
<ArtifactNameWithVersionCombinedHostHostFxrFrameworkSdk>$(ArtifactNameCombinedHostHostFxrFrameworkSdk)-$(Version)-$(ProductMonikerRid)</ArtifactNameWithVersionCombinedHostHostFxrFrameworkSdk>
|
||||||
<!-- Warning: changing the value "ProductBandCombinedHostHostFxrFrameworkSdkName" can only occur on a product-band boundary [CliProductBandVersion],
|
<!-- Warning: changing the value "ProductBandCombinedHostHostFxrFrameworkSdkName" can only occur on a product-band boundary [CliProductBandVersion],
|
||||||
Changing "ProductBandCombinedHostHostFxrFrameworkSdkName" mid-product-band will break the upgradablilty of the SDK bundle installer. -->
|
Changing "ProductBandCombinedHostHostFxrFrameworkSdkName" mid-product-band will break the upgradablilty of the SDK bundle installer. -->
|
||||||
<ProductBandCombinedHostHostFxrFrameworkSdkName>Dotnet SDK Bundle Installer $(CliProductBandVersion) $(ProductMonikerRid)</ProductBandCombinedHostHostFxrFrameworkSdkName>
|
<ProductBandCombinedHostHostFxrFrameworkSdkName>Dotnet SDK Bundle Installer $(CliProductBandVersion) $(ProductMonikerRid)</ProductBandCombinedHostHostFxrFrameworkSdkName>
|
||||||
<DistroSpecificArtifactNameWithVersionCombinedHostHostFxrFrameworkSdkWithoutHostMonikerRid>$(ArtifactNameCombinedHostHostFxrFrameworkSdk)-$(SdkVersion)-</DistroSpecificArtifactNameWithVersionCombinedHostHostFxrFrameworkSdkWithoutHostMonikerRid>
|
<DistroSpecificArtifactNameWithVersionCombinedHostHostFxrFrameworkSdkWithoutHostMonikerRid>$(ArtifactNameCombinedHostHostFxrFrameworkSdk)-$(Version)-</DistroSpecificArtifactNameWithVersionCombinedHostHostFxrFrameworkSdkWithoutHostMonikerRid>
|
||||||
<DistroSpecificArtifactNameWithVersionCombinedHostHostFxrFrameworkSdk>$(DistroSpecificArtifactNameWithVersionCombinedHostHostFxrFrameworkSdkWithoutHostMonikerRid)$(HostMonikerRidForFileName)</DistroSpecificArtifactNameWithVersionCombinedHostHostFxrFrameworkSdk>
|
<DistroSpecificArtifactNameWithVersionCombinedHostHostFxrFrameworkSdk>$(DistroSpecificArtifactNameWithVersionCombinedHostHostFxrFrameworkSdkWithoutHostMonikerRid)$(HostMonikerRidForFileName)</DistroSpecificArtifactNameWithVersionCombinedHostHostFxrFrameworkSdk>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
</Target>
|
</Target>
|
||||||
|
|
|
@ -1,55 +0,0 @@
|
||||||
<Project>
|
|
||||||
<PropertyGroup>
|
|
||||||
<VersionMajor>5</VersionMajor>
|
|
||||||
<VersionMinor>0</VersionMinor>
|
|
||||||
<VersionSDKMinor>1</VersionSDKMinor>
|
|
||||||
<VersionPatch>00</VersionPatch>
|
|
||||||
<ReleaseSuffix Condition=" '$(ReleaseSuffix)' == '' ">alpha1</ReleaseSuffix>
|
|
||||||
<!--
|
|
||||||
When DropSuffix is set to 'true', this branch will produce stable outputs for 'Shipping' packages
|
|
||||||
-->
|
|
||||||
<DropSuffix>false</DropSuffix>
|
|
||||||
</PropertyGroup>
|
|
||||||
|
|
||||||
<Target Name="GetCoreSdkGitCommitInfo">
|
|
||||||
<Exec Command="git rev-list --count HEAD"
|
|
||||||
ConsoleToMSBuild="true"
|
|
||||||
Condition=" '$(GitCommitCount)' == '' ">
|
|
||||||
<Output TaskParameter="ConsoleOutput" PropertyName="GitCommitCount" />
|
|
||||||
</Exec>
|
|
||||||
|
|
||||||
<Exec Command="git rev-parse HEAD"
|
|
||||||
ConsoleToMSBuild="true"
|
|
||||||
Condition=" '$(GitCommitHash)' == '' ">
|
|
||||||
<Output TaskParameter="ConsoleOutput" PropertyName="GitCommitHash" />
|
|
||||||
</Exec>
|
|
||||||
|
|
||||||
<PropertyGroup>
|
|
||||||
<GitCommitCount>$(GitCommitCount.PadLeft(6,'0'))</GitCommitCount>
|
|
||||||
</PropertyGroup>
|
|
||||||
</Target>
|
|
||||||
|
|
||||||
<Target Name="SetSdkVersionInfo" DependsOnTargets="GetCoreSdkGitCommitInfo">
|
|
||||||
<PropertyGroup>
|
|
||||||
<MajorMinorVersion>$(VersionMajor).$(VersionMinor)</MajorMinorVersion>
|
|
||||||
<CliProductBandVersion>$(MajorMinorVersion).$(VersionSDKMinor)</CliProductBandVersion>
|
|
||||||
<CliVersionNoSuffix>$(CliProductBandVersion)$(VersionPatch)</CliVersionNoSuffix>
|
|
||||||
<CliVersionPrefix>$(CliVersionNoSuffix)-$(ReleaseSuffix)</CliVersionPrefix>
|
|
||||||
<CliBrandingVersion Condition=" '$(DropSuffix)' != 'true' ">$(CliVersionNoSuffix) - $(ReleaseSuffix)</CliBrandingVersion>
|
|
||||||
<CliBrandingVersion Condition=" '$(DropSuffix)' == 'true' ">$(CliVersionNoSuffix)</CliBrandingVersion>
|
|
||||||
<SDKBundleVersion>$(CliVersionNoSuffix).$(GitCommitCount)</SDKBundleVersion>
|
|
||||||
|
|
||||||
<VersionSuffix Condition=" '$(DropSuffix)' != 'true' ">$(ReleaseSuffix)-$(GitCommitCount)</VersionSuffix>
|
|
||||||
|
|
||||||
<FullNugetVersion>$(CliVersionNoSuffix)-$(ReleaseSuffix)-$(GitCommitCount)</FullNugetVersion>
|
|
||||||
|
|
||||||
<NugetVersion Condition=" '$(DropSuffix)' != 'true' ">$(FullNugetVersion)</NugetVersion>
|
|
||||||
<NugetVersion Condition=" '$(NugetVersion)' == '' ">$(CliVersionNoSuffix)</NugetVersion>
|
|
||||||
|
|
||||||
<SdkVersion>$(NugetVersion)</SdkVersion>
|
|
||||||
<SdkNugetVersion>$(NugetVersion)</SdkNugetVersion>
|
|
||||||
|
|
||||||
</PropertyGroup>
|
|
||||||
</Target>
|
|
||||||
|
|
||||||
</Project>
|
|
Loading…
Add table
Add a link
Reference in a new issue