2016-06-27 18:45:51 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2016-06-28 02:09:30 +00:00
|
|
|
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
2016-07-26 04:29:59 +00:00
|
|
|
<Import Project="Microsoft.DotNet.Cli.tasks" />
|
2016-07-21 03:42:23 +00:00
|
|
|
<Import Project="prepare/CheckPrereqs.targets" />
|
2016-11-24 07:54:44 +00:00
|
|
|
<Import Project="Microsoft.DotNet.Cli.BundledSdks.props" />
|
2017-01-06 22:48:27 +00:00
|
|
|
<Import Project="Microsoft.DotNet.Cli.BundledTemplates.props" />
|
2016-12-02 04:10:42 +00:00
|
|
|
<Import Project="Microsoft.DotNet.Cli.DependencyVersions.props" />
|
2016-07-21 03:42:23 +00:00
|
|
|
|
2016-06-29 07:41:38 +00:00
|
|
|
<Target Name="Prepare"
|
2017-02-01 01:31:37 +00:00
|
|
|
DependsOnTargets="Init;DownloadHostAndSharedFxArtifacts;RestoreSrcPackages;RestoreToolsPackages" />
|
2016-06-27 18:45:51 +00:00
|
|
|
|
2016-06-29 07:41:38 +00:00
|
|
|
<Target Name="Init"
|
2016-07-21 03:42:23 +00:00
|
|
|
DependsOnTargets="InitializeCommonProps;
|
|
|
|
BuildDotnetCliBuildFramework;
|
|
|
|
CheckPrereqs;">
|
|
|
|
</Target>
|
|
|
|
|
|
|
|
<Target Name="InitializeCommonProps"
|
|
|
|
DependsOnTargets="BuildDotnetCliBuildFramework" >
|
|
|
|
|
2016-06-27 18:45:51 +00:00
|
|
|
<!-- Current Runtime Information -->
|
2016-10-08 18:45:19 +00:00
|
|
|
<GetCurrentRuntimeInformation OverrideRid="$(OverrideRid)">
|
2016-06-28 02:09:30 +00:00
|
|
|
<Output TaskParameter="Rid" PropertyName="Rid" />
|
|
|
|
<Output TaskParameter="Architecture" PropertyName="Architecture" />
|
|
|
|
<Output TaskParameter="OSName" PropertyName="OSName" />
|
|
|
|
</GetCurrentRuntimeInformation>
|
2016-07-26 04:29:59 +00:00
|
|
|
|
2016-06-27 18:45:51 +00:00
|
|
|
<!-- Common Properties -->
|
2016-07-11 19:46:27 +00:00
|
|
|
<PropertyGroup>
|
|
|
|
<IsDesktopAvailable>False</IsDesktopAvailable>
|
|
|
|
<IsDesktopAvailable Condition=" '$(OSName)' == 'win' ">True</IsDesktopAvailable>
|
2016-07-26 04:29:59 +00:00
|
|
|
<DotNetPath>$(Stage0Directory)</DotNetPath>
|
2016-06-27 18:45:51 +00:00
|
|
|
<BaseOutputDirectory>$(RepoRoot)/artifacts/$(Rid)</BaseOutputDirectory>
|
2016-06-29 21:10:55 +00:00
|
|
|
<ToolsOutputDirectory>$(BaseOutputDirectory)/tools</ToolsOutputDirectory>
|
|
|
|
<Stage1Directory>$(BaseOutputDirectory)/stage1</Stage1Directory>
|
|
|
|
<Stage1SymbolsDirectory>$(BaseOutputDirectory)/stage1symbols</Stage1SymbolsDirectory>
|
2016-07-05 03:36:30 +00:00
|
|
|
<DotnetStage1>$(Stage1Directory)/dotnet$(ExeExtension)</DotnetStage1>
|
2016-06-29 21:10:55 +00:00
|
|
|
<Stage2Directory>$(BaseOutputDirectory)/stage2</Stage2Directory>
|
|
|
|
<Stage2SymbolsDirectory>$(BaseOutputDirectory)/stage2symbols</Stage2SymbolsDirectory>
|
2016-07-05 03:36:30 +00:00
|
|
|
<DotnetStage2>$(Stage2Directory)/dotnet$(ExeExtension)</DotnetStage2>
|
2016-07-02 03:46:54 +00:00
|
|
|
<OutputDirectory>$(Stage2Directory)/</OutputDirectory>
|
2016-06-27 18:45:51 +00:00
|
|
|
<Stage2CompilationDirectory>$(BaseOutputDirectory)/stage2compilation</Stage2CompilationDirectory>
|
|
|
|
<IntermediateDirectory>$(BaseOutputDirectory)/intermediate</IntermediateDirectory>
|
2016-07-21 03:42:23 +00:00
|
|
|
<PackagesDirectory>$(BaseOutputDirectory)/packages</PackagesDirectory>
|
2016-06-29 07:41:38 +00:00
|
|
|
<SharedFrameworkPublishDirectory>$(IntermediateDirectory)/sharedFrameworkPublish</SharedFrameworkPublishDirectory>
|
2017-01-26 21:18:24 +00:00
|
|
|
<CoreCLRRid>$(Rid)</CoreCLRRid>
|
|
|
|
<CoreCLRRid Condition=" '$(OSName)' == 'win' ">win7-$(Architecture)</CoreCLRRid>
|
|
|
|
<CoreCLRRid Condition=" '$(OSName)' == 'osx' ">osx.10.10-x64</CoreCLRRid>
|
|
|
|
<CoreCLRRid Condition=" '$(OSName)' == 'centos' OR '$(OSName)' == 'rhel' ">rhel.7-x64</CoreCLRRid>
|
2016-06-27 18:45:51 +00:00
|
|
|
</PropertyGroup>
|
|
|
|
|
2016-07-26 04:29:59 +00:00
|
|
|
<GetCommitHash RepoRoot="$(RepoRoot)">
|
|
|
|
<Output TaskParameter="CommitHash" PropertyName="CommitHash" />
|
|
|
|
</GetCommitHash>
|
|
|
|
|
2016-06-27 18:45:51 +00:00
|
|
|
<GenerateBuildVersionInfo RepoRoot="$(RepoRoot)">
|
2016-06-28 02:09:30 +00:00
|
|
|
<Output TaskParameter="VersionMajor" PropertyName="VersionMajor" />
|
|
|
|
<Output TaskParameter="VersionMinor" PropertyName="VersionMinor" />
|
|
|
|
<Output TaskParameter="VersionPatch" PropertyName="VersionPatch" />
|
2017-01-27 04:44:31 +00:00
|
|
|
<Output TaskParameter="CommitCount" PropertyName="DefaultCommitCount" />
|
2017-02-10 06:31:46 +00:00
|
|
|
<Output TaskParameter="ReleaseSuffix" PropertyName="DefaultReleaseSuffix" />
|
2016-06-28 02:09:30 +00:00
|
|
|
<Output TaskParameter="MsiVersion" PropertyName="MsiVersion" />
|
|
|
|
<Output TaskParameter="VersionBadgeMoniker" PropertyName="VersionBadgeMoniker" />
|
|
|
|
<Output TaskParameter="Channel" PropertyName="Channel" />
|
2017-02-03 18:21:00 +00:00
|
|
|
<Output TaskParameter="BranchName" PropertyName="BranchName" Condition=" '$(BranchName)' == '' " />
|
2016-06-27 18:45:51 +00:00
|
|
|
</GenerateBuildVersionInfo>
|
|
|
|
|
|
|
|
<PropertyGroup>
|
2017-01-27 04:44:31 +00:00
|
|
|
<CommitCount Condition=" '$(CommitCount)' == '' ">$(DefaultCommitCount)</CommitCount>
|
2017-02-10 06:31:46 +00:00
|
|
|
<ReleaseSuffix Condition=" '$(ReleaseSuffix)' == '' ">$(DefaultReleaseSuffix)</ReleaseSuffix>
|
2017-01-27 04:44:31 +00:00
|
|
|
|
2017-02-08 22:31:07 +00:00
|
|
|
<SimpleVersion Condition=" '$(DropSuffix)' == '' ">$(VersionMajor).$(VersionMinor).$(VersionPatch).$(CommitCount)</SimpleVersion>
|
|
|
|
<SimpleVersion Condition=" '$(SimpleVersion)' == '' ">$(VersionMajor).$(VersionMinor).$(VersionPatch)</SimpleVersion>
|
|
|
|
|
|
|
|
<VersionSuffix Condition=" '$(DropSuffix)' == '' ">$(ReleaseSuffix)-$(CommitCount)</VersionSuffix>
|
|
|
|
|
2017-02-09 00:53:01 +00:00
|
|
|
<FullNugetVersion>$(VersionMajor).$(VersionMinor).$(VersionPatch)-$(ReleaseSuffix)-$(CommitCount)</FullNugetVersion>
|
|
|
|
|
|
|
|
<NugetVersion Condition=" '$(DropSuffix)' == '' ">$(FullNugetVersion)</NugetVersion>
|
2017-02-08 22:31:07 +00:00
|
|
|
<NugetVersion Condition=" '$(NugetVersion)' == '' ">$(VersionMajor).$(VersionMinor).$(VersionPatch)</NugetVersion>
|
2017-01-27 04:44:31 +00:00
|
|
|
|
2016-06-28 02:09:30 +00:00
|
|
|
<SdkVersion>$(NugetVersion)</SdkVersion>
|
2017-02-08 22:31:07 +00:00
|
|
|
<SdkNugetVersion>$(NugetVersion)</SdkNugetVersion>
|
2016-07-21 03:42:23 +00:00
|
|
|
|
2017-02-08 22:31:07 +00:00
|
|
|
<VersionBadge>$(BaseOutputDirectory)/$(VersionBadgeMoniker)_$(Configuration)_version_badge.svg</VersionBadge>
|
2016-06-28 02:09:30 +00:00
|
|
|
|
|
|
|
<ArchiveExtension Condition=" '$(OSName)' == 'win' ">.zip</ArchiveExtension>
|
|
|
|
<ArchiveExtension Condition=" '$(OSName)' != 'win' ">.tar.gz</ArchiveExtension>
|
|
|
|
|
|
|
|
<InstallerExtension Condition=" '$(OSName)' == 'win' ">.msi</InstallerExtension>
|
|
|
|
<InstallerExtension Condition=" '$(OSName)' == 'osx' ">.pkg</InstallerExtension>
|
|
|
|
<InstallerExtension Condition=" '$(OSName)' == 'ubuntu' ">.deb</InstallerExtension>
|
|
|
|
|
|
|
|
<BundleExtension Condition=" '$(OSName)' == 'win' ">.exe</BundleExtension>
|
|
|
|
<BundleExtension Condition=" '$(OSName)' == 'osx' ">$(InstallerExtension)</BundleExtension>
|
|
|
|
<BundleExtension Condition=" '$(OSName)' == 'ubuntu' ">$(InstallerExtension)</BundleExtension>
|
|
|
|
|
2017-02-17 02:13:14 +00:00
|
|
|
<ProductMonikerRid Condition=" '$(Rid)' == 'ubuntu.16.04-x64' Or
|
|
|
|
'$(Rid)' == 'ubuntu.16.10-x64' Or
|
|
|
|
'$(Rid)' == 'fedora.23-x64' Or
|
|
|
|
'$(Rid)' == 'fedora.24-x64' Or
|
|
|
|
'$(Rid)' == 'opensuse.13.2-x64' Or
|
|
|
|
'$(Rid)' == 'opensuse.42.1-x64' ">$(Rid)</ProductMonikerRid>
|
2016-06-28 02:09:30 +00:00
|
|
|
<ProductMonikerRid Condition=" '$(ProductMonikerRid)' == '' ">$(OSName)-$(Architecture)</ProductMonikerRid>
|
|
|
|
|
2016-07-26 04:29:59 +00:00
|
|
|
<DynamicLibPrefix>lib</DynamicLibPrefix>
|
|
|
|
<DynamicLibPrefix Condition=" '$(OSName)' == 'win' "></DynamicLibPrefix>
|
|
|
|
<DynamicLibExtension>.so</DynamicLibExtension>
|
|
|
|
<DynamicLibExtension Condition=" '$(OSName)' == 'win' ">.dll</DynamicLibExtension>
|
|
|
|
<DynamicLibExtension Condition=" '$(OSName)' == 'osx' ">.dylib</DynamicLibExtension>
|
|
|
|
|
2016-06-28 01:26:57 +00:00
|
|
|
<ArtifactNameSdk>dotnet-sdk</ArtifactNameSdk>
|
|
|
|
<ArtifactNameSdkDebug>dotnet-sdk-debug</ArtifactNameSdkDebug>
|
|
|
|
<ArtifactNameCombinedHostHostFxrFrameworkSdk>dotnet-dev</ArtifactNameCombinedHostHostFxrFrameworkSdk>
|
|
|
|
<ArtifactNameCombinedFrameworkSdk>dotnet-sharedframework-sdk</ArtifactNameCombinedFrameworkSdk>
|
2016-06-28 02:09:30 +00:00
|
|
|
|
2016-06-28 01:26:57 +00:00
|
|
|
<ArtifactNameWithVersionSdk>$(ArtifactNameSdk)-$(ProductMonikerRid).$(SdkVersion)</ArtifactNameWithVersionSdk>
|
|
|
|
<ArtifactNameWithVersionSdkDebug>$(ArtifactNameSdkDebug)-$(ProductMonikerRid).$(SdkVersion)</ArtifactNameWithVersionSdkDebug>
|
|
|
|
<ArtifactNameWithVersionCombinedHostHostFxrFrameworkSdk>$(ArtifactNameCombinedHostHostFxrFrameworkSdk)-$(ProductMonikerRid).$(SdkVersion)</ArtifactNameWithVersionCombinedHostHostFxrFrameworkSdk>
|
|
|
|
<ArtifactNameWithVersionCombinedFrameworkSdk>$(ArtifactNameCombinedFrameworkSdk)-$(ProductMonikerRid).$(SdkVersion)</ArtifactNameWithVersionCombinedFrameworkSdk>
|
2016-06-28 02:09:30 +00:00
|
|
|
|
|
|
|
<!-- Downloaded Installers + Archives -->
|
2016-06-29 23:21:46 +00:00
|
|
|
<DownloadedSharedHostInstallerFileName Condition=" '$(InstallerExtension)' != '' ">dotnet-host-$(ProductMonikerRid).$(SharedHostVersion)$(InstallerExtension)</DownloadedSharedHostInstallerFileName>
|
|
|
|
<DownloadedSharedHostInstallerFile Condition=" '$(InstallerExtension)' != '' ">$(PackagesDirectory)/$(DownloadedSharedHostInstallerFileName)</DownloadedSharedHostInstallerFile>
|
2016-06-28 02:09:30 +00:00
|
|
|
|
2016-06-29 23:21:46 +00:00
|
|
|
<DownloadedHostFxrInstallerFileName Condition=" '$(InstallerExtension)' != '' ">dotnet-hostfxr-$(ProductMonikerRid).$(HostFxrVersion)$(InstallerExtension)</DownloadedHostFxrInstallerFileName>
|
|
|
|
<DownloadedHostFxrInstallerFile Condition=" '$(InstallerExtension)' != '' ">$(PackagesDirectory)/$(DownloadedHostFxrInstallerFileName)</DownloadedHostFxrInstallerFile>
|
2016-06-28 02:09:30 +00:00
|
|
|
|
2016-06-29 23:21:46 +00:00
|
|
|
<DownloadedSharedFrameworkInstallerFileName Condition=" '$(InstallerExtension)' != '' ">dotnet-sharedframework-$(ProductMonikerRid).$(SharedFrameworkVersion)$(InstallerExtension)</DownloadedSharedFrameworkInstallerFileName>
|
|
|
|
<DownloadedSharedFrameworkInstallerFile Condition=" '$(InstallerExtension)' != '' ">$(PackagesDirectory)/$(DownloadedSharedFrameworkInstallerFileName)</DownloadedSharedFrameworkInstallerFile>
|
2016-06-28 02:09:30 +00:00
|
|
|
|
2016-06-29 07:41:38 +00:00
|
|
|
<CombinedFrameworkHostCompressedFileName>dotnet-$(ProductMonikerRid).$(SharedFrameworkVersion)$(ArchiveExtension)</CombinedFrameworkHostCompressedFileName>
|
2016-06-27 18:45:51 +00:00
|
|
|
</PropertyGroup>
|
2016-06-28 02:09:30 +00:00
|
|
|
|
2017-01-05 21:39:35 +00:00
|
|
|
<PropertyGroup>
|
2017-02-17 02:13:14 +00:00
|
|
|
<HasAdditionalSharedFramework Condition="'$(Rid)' != 'ubuntu.16.10-x64' AND
|
|
|
|
'$(Rid)' != 'fedora.24-x64' AND
|
|
|
|
'$(Rid)' != 'opensuse.42.1-x64'">true</HasAdditionalSharedFramework>
|
|
|
|
<IncludeAdditionalSharedFrameworks Condition=" '$(IncludeAdditionalSharedFrameworks)' == '' AND '$(HasAdditionalSharedFramework)' == 'true' ">true</IncludeAdditionalSharedFrameworks>
|
|
|
|
<IncludeAdditionalSharedFrameworks Condition=" '$(IncludeAdditionalSharedFrameworks)' == '' ">false</IncludeAdditionalSharedFrameworks>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<!-- Additional Shared Framework to be installed -->
|
|
|
|
<PropertyGroup Condition=" '$(IncludeAdditionalSharedFrameworks)' == 'true' ">
|
2017-01-21 02:30:10 +00:00
|
|
|
<AdditionalCoreSetupChannel>preview</AdditionalCoreSetupChannel>
|
2017-02-10 23:12:52 +00:00
|
|
|
<AdditionalSharedFrameworkVersion>1.0.4</AdditionalSharedFrameworkVersion>
|
2017-01-25 19:43:07 +00:00
|
|
|
<AdditionalSharedHostVersion>1.0.1</AdditionalSharedHostVersion>
|
|
|
|
<AdditionalHostFxrVersion>1.0.1</AdditionalHostFxrVersion>
|
2017-01-05 21:39:35 +00:00
|
|
|
|
|
|
|
<!-- Additional Downloaded Installers + Archives -->
|
|
|
|
<AdditionalDownloadedSharedHostInstallerFileName Condition=" '$(InstallerExtension)' != '' ">dotnet-host-$(ProductMonikerRid).$(AdditionalSharedHostVersion)$(InstallerExtension)</AdditionalDownloadedSharedHostInstallerFileName>
|
|
|
|
<AdditionalDownloadedSharedHostInstallerFile Condition=" '$(InstallerExtension)' != '' ">$(PackagesDirectory)/$(AdditionalDownloadedSharedHostInstallerFileName)</AdditionalDownloadedSharedHostInstallerFile>
|
|
|
|
|
|
|
|
<AdditionalDownloadedHostFxrInstallerFileName Condition=" '$(InstallerExtension)' != '' ">dotnet-hostfxr-$(ProductMonikerRid).$(AdditionalHostFxrVersion)$(InstallerExtension)</AdditionalDownloadedHostFxrInstallerFileName>
|
|
|
|
<AdditionalDownloadedHostFxrInstallerFile Condition=" '$(InstallerExtension)' != '' ">$(PackagesDirectory)/$(AdditionalDownloadedHostFxrInstallerFileName)</AdditionalDownloadedHostFxrInstallerFile>
|
|
|
|
|
|
|
|
<AdditionalDownloadedSharedFrameworkInstallerFileName Condition=" '$(InstallerExtension)' != '' ">dotnet-sharedframework-$(ProductMonikerRid).$(AdditionalSharedFrameworkVersion)$(InstallerExtension)</AdditionalDownloadedSharedFrameworkInstallerFileName>
|
|
|
|
<AdditionalDownloadedSharedFrameworkInstallerFile Condition=" '$(InstallerExtension)' != '' ">$(PackagesDirectory)/$(AdditionalDownloadedSharedFrameworkInstallerFileName)</AdditionalDownloadedSharedFrameworkInstallerFile>
|
|
|
|
|
|
|
|
<AdditionalCombinedFrameworkHostCompressedFileName>dotnet-$(ProductMonikerRid).$(AdditionalSharedFrameworkVersion)$(ArchiveExtension)</AdditionalCombinedFrameworkHostCompressedFileName>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
|
2016-06-28 02:09:30 +00:00
|
|
|
<!-- SetTelemetryProfile -->
|
2016-07-11 19:46:27 +00:00
|
|
|
<SetEnvVar Name="DOTNET_CLI_TELEMETRY_PROFILE" Value="$(DOTNET_CLI_TELEMETRY_PROFILE);https://github.com/dotnet/cli;$(CommitHash)" />
|
2016-06-27 18:45:51 +00:00
|
|
|
</Target>
|
2016-06-28 23:19:42 +00:00
|
|
|
|
2016-06-29 07:41:38 +00:00
|
|
|
<Target Name="SetupDownloadHostAndSharedFxInputsOutputs" DependsOnTargets="Init">
|
|
|
|
<PropertyGroup>
|
2017-01-05 20:07:03 +00:00
|
|
|
<CoreSetupBlobRootUrl>https://dotnetcli.azureedge.net/dotnet/</CoreSetupBlobRootUrl>
|
|
|
|
<CoreSetupBlobRootUrlWithChannel>$(CoreSetupBlobRootUrl)$(CoreSetupChannel)</CoreSetupBlobRootUrlWithChannel>
|
|
|
|
<SharedFrameworkArchiveBlobRootUrl>$(CoreSetupBlobRootUrlWithChannel)/Binaries/$(SharedFrameworkVersion)</SharedFrameworkArchiveBlobRootUrl>
|
|
|
|
<CoreSetupInstallerBlobRootUrl>$(CoreSetupBlobRootUrlWithChannel)/Installers</CoreSetupInstallerBlobRootUrl>
|
2016-06-29 07:41:38 +00:00
|
|
|
<CoreSetupDownloadDirectory>$(IntermediateDirectory)/coreSetupDownload/$(SharedFrameworkVersion)</CoreSetupDownloadDirectory>
|
|
|
|
<CombinedSharedHostAndFrameworkArchive>$(CoreSetupDownloadDirectory)/combinedSharedHostAndFrameworkArchive</CombinedSharedHostAndFrameworkArchive>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<ItemGroup>
|
|
|
|
<_DownloadAndExtractItem Include="CombinedSharedHostAndFrameworkArchive"
|
|
|
|
Condition="!Exists('$(CombinedSharedHostAndFrameworkArchive)')">
|
|
|
|
<Url>$(SharedFrameworkArchiveBlobRootUrl)/$(CombinedFrameworkHostCompressedFileName)</Url>
|
|
|
|
<DownloadFileName>$(CombinedSharedHostAndFrameworkArchive)</DownloadFileName>
|
2016-07-26 04:29:59 +00:00
|
|
|
<ExtractDestination>$(SharedFrameworkPublishDirectory)</ExtractDestination>
|
2016-06-29 07:41:38 +00:00
|
|
|
</_DownloadAndExtractItem>
|
|
|
|
|
2016-06-29 23:21:46 +00:00
|
|
|
<_DownloadAndExtractItem Include="DownloadedSharedFrameworkInstallerFile"
|
2016-07-06 19:03:16 +00:00
|
|
|
Condition="!Exists('$(DownloadedSharedFrameworkInstallerFile)') And '$(InstallerExtension)' != ''">
|
2016-06-29 23:21:46 +00:00
|
|
|
<Url>$(CoreSetupInstallerBlobRootUrl)/$(SharedFrameworkVersion)/$(DownloadedSharedFrameworkInstallerFileName)</Url>
|
|
|
|
<DownloadFileName>$(DownloadedSharedFrameworkInstallerFile)</DownloadFileName>
|
2016-07-26 04:29:59 +00:00
|
|
|
<ExtractDestination></ExtractDestination>
|
2016-06-29 07:41:38 +00:00
|
|
|
</_DownloadAndExtractItem>
|
|
|
|
|
2016-06-29 23:21:46 +00:00
|
|
|
<_DownloadAndExtractItem Include="DownloadedSharedHostInstallerFile"
|
2016-07-06 19:03:16 +00:00
|
|
|
Condition="!Exists('$(DownloadedSharedHostInstallerFile)') And '$(InstallerExtension)' != ''">
|
2016-06-29 23:21:46 +00:00
|
|
|
<Url>$(CoreSetupInstallerBlobRootUrl)/$(SharedHostVersion)/$(DownloadedSharedHostInstallerFileName)</Url>
|
|
|
|
<DownloadFileName>$(DownloadedSharedHostInstallerFile)</DownloadFileName>
|
2016-06-29 07:41:38 +00:00
|
|
|
<ExtractDestintation></ExtractDestintation>
|
|
|
|
</_DownloadAndExtractItem>
|
|
|
|
|
2016-06-29 23:21:46 +00:00
|
|
|
<_DownloadAndExtractItem Include="DownloadedHostFxrInstallerFile"
|
2016-07-06 19:03:16 +00:00
|
|
|
Condition="!Exists('$(DownloadedHostFxrInstallerFile)') And '$(InstallerExtension)' != ''">
|
2016-06-29 23:21:46 +00:00
|
|
|
<Url>$(CoreSetupInstallerBlobRootUrl)/$(HostFxrVersion)/$(DownloadedHostFxrInstallerFileName)</Url>
|
|
|
|
<DownloadFileName>$(DownloadedHostFxrInstallerFile)</DownloadFileName>
|
2016-06-29 07:41:38 +00:00
|
|
|
<ExtractDestintation></ExtractDestintation>
|
|
|
|
</_DownloadAndExtractItem>
|
|
|
|
</ItemGroup>
|
2017-01-05 20:07:03 +00:00
|
|
|
|
|
|
|
<!-- Additional Shared Framework to be installed -->
|
2017-02-17 02:13:14 +00:00
|
|
|
<PropertyGroup Condition=" '$(IncludeAdditionalSharedFrameworks)' != 'false' ">
|
2017-01-05 20:07:03 +00:00
|
|
|
<AdditionalCoreSetupBlobRootUrlWithChannel>$(CoreSetupBlobRootUrl)$(AdditionalCoreSetupChannel)</AdditionalCoreSetupBlobRootUrlWithChannel>
|
|
|
|
<AdditionalSharedFrameworkArchiveBlobRootUrl>$(AdditionalCoreSetupBlobRootUrlWithChannel)/Binaries/$(AdditionalSharedFrameworkVersion)</AdditionalSharedFrameworkArchiveBlobRootUrl>
|
|
|
|
<AdditionalCoreSetupInstallerBlobRootUrl>$(AdditionalCoreSetupBlobRootUrlWithChannel)/Installers</AdditionalCoreSetupInstallerBlobRootUrl>
|
|
|
|
<AdditionalCoreSetupDownloadDirectory>$(IntermediateDirectory)/coreSetupDownload/$(AdditionalSharedFrameworkVersion)</AdditionalCoreSetupDownloadDirectory>
|
|
|
|
<AdditionalCombinedSharedHostAndFrameworkArchive>$(AdditionalCoreSetupDownloadDirectory)/combinedSharedHostAndFrameworkArchive</AdditionalCombinedSharedHostAndFrameworkArchive>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
2017-02-17 02:13:14 +00:00
|
|
|
<ItemGroup Condition=" '$(IncludeAdditionalSharedFrameworks)' != 'false' ">
|
2017-01-05 20:07:03 +00:00
|
|
|
<_DownloadAndExtractItem Include="AdditionalCombinedSharedHostAndFrameworkArchive"
|
|
|
|
Condition="!Exists('$(AdditionalCombinedSharedHostAndFrameworkArchive)')">
|
|
|
|
<Url>$(AdditionalSharedFrameworkArchiveBlobRootUrl)/$(AdditionalCombinedFrameworkHostCompressedFileName)</Url>
|
|
|
|
<DownloadFileName>$(AdditionalCombinedSharedHostAndFrameworkArchive)</DownloadFileName>
|
|
|
|
<ExtractDestination>$(SharedFrameworkPublishDirectory)</ExtractDestination>
|
|
|
|
<!-- don't overwrite the destination because both shared fx's need to be combined -->
|
|
|
|
<OverwriteDestination>False</OverwriteDestination>
|
|
|
|
</_DownloadAndExtractItem>
|
|
|
|
|
|
|
|
<_DownloadAndExtractItem Include="AdditionalDownloadedSharedFrameworkInstallerFile"
|
|
|
|
Condition="!Exists('$(AdditionalDownloadedSharedFrameworkInstallerFile)') And '$(InstallerExtension)' != ''">
|
|
|
|
<Url>$(AdditionalCoreSetupInstallerBlobRootUrl)/$(AdditionalSharedFrameworkVersion)/$(AdditionalDownloadedSharedFrameworkInstallerFileName)</Url>
|
|
|
|
<DownloadFileName>$(AdditionalDownloadedSharedFrameworkInstallerFile)</DownloadFileName>
|
|
|
|
<ExtractDestination></ExtractDestination>
|
|
|
|
</_DownloadAndExtractItem>
|
|
|
|
|
|
|
|
<_DownloadAndExtractItem Include="AdditionalDownloadedSharedHostInstallerFile"
|
|
|
|
Condition="!Exists('$(AdditionalDownloadedSharedHostInstallerFile)') And '$(InstallerExtension)' != ''">
|
|
|
|
<Url>$(AdditionalCoreSetupInstallerBlobRootUrl)/$(AdditionalSharedHostVersion)/$(AdditionalDownloadedSharedHostInstallerFileName)</Url>
|
|
|
|
<DownloadFileName>$(AdditionalDownloadedSharedHostInstallerFile)</DownloadFileName>
|
|
|
|
<ExtractDestintation></ExtractDestintation>
|
|
|
|
</_DownloadAndExtractItem>
|
|
|
|
|
|
|
|
<_DownloadAndExtractItem Include="AdditionalDownloadedHostFxrInstallerFile"
|
|
|
|
Condition="!Exists('$(AdditionalDownloadedHostFxrInstallerFile)') And '$(InstallerExtension)' != ''">
|
|
|
|
<Url>$(AdditionalCoreSetupInstallerBlobRootUrl)/$(AdditionalHostFxrVersion)/$(AdditionalDownloadedHostFxrInstallerFileName)</Url>
|
|
|
|
<DownloadFileName>$(AdditionalDownloadedHostFxrInstallerFile)</DownloadFileName>
|
|
|
|
<ExtractDestintation></ExtractDestintation>
|
|
|
|
</_DownloadAndExtractItem>
|
|
|
|
</ItemGroup>
|
2016-06-29 07:41:38 +00:00
|
|
|
</Target>
|
|
|
|
|
|
|
|
<Target Name="DownloadHostAndSharedFxArtifacts"
|
|
|
|
DependsOnTargets="SetupDownloadHostAndSharedFxInputsOutputs">
|
|
|
|
|
2017-01-05 20:07:03 +00:00
|
|
|
<PropertyGroup>
|
|
|
|
<OverwriteExtractionDestination>%(_DownloadAndExtractItem.OverwriteDestination)</OverwriteExtractionDestination>
|
|
|
|
<OverwriteExtractionDestination Condition="'$(OverwriteExtractionDestination)' == ''">True</OverwriteExtractionDestination>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
2016-06-29 07:41:38 +00:00
|
|
|
<DownloadFile Condition=" '@(_DownloadAndExtractItem)' != '' "
|
|
|
|
Uri="%(_DownloadAndExtractItem.Url)"
|
|
|
|
DestinationPath="%(_DownloadAndExtractItem.DownloadFileName)" />
|
|
|
|
|
2016-07-26 04:29:59 +00:00
|
|
|
<ZipFileExtractToDirectory Condition=" '%(_DownloadAndExtractItem.ExtractDestination)' != '' AND '$(OSName)' == 'win' "
|
|
|
|
SourceArchive="%(_DownloadAndExtractItem.DownloadFileName)"
|
|
|
|
DestinationDirectory="%(_DownloadAndExtractItem.ExtractDestination)"
|
2017-01-05 20:07:03 +00:00
|
|
|
OverwriteDestination="$(OverwriteExtractionDestination)" />
|
2016-07-26 04:29:59 +00:00
|
|
|
|
|
|
|
<TarGzFileExtractToDirectory Condition=" '%(_DownloadAndExtractItem.ExtractDestination)' != '' AND '$(OSName)' != 'win' "
|
|
|
|
SourceArchive="%(_DownloadAndExtractItem.DownloadFileName)"
|
|
|
|
DestinationDirectory="%(_DownloadAndExtractItem.ExtractDestination)"
|
2017-01-05 20:07:03 +00:00
|
|
|
OverwriteDestination="$(OverwriteExtractionDestination)" />
|
2016-06-29 07:41:38 +00:00
|
|
|
</Target>
|
2016-07-21 03:42:23 +00:00
|
|
|
|
2016-10-29 08:04:20 +00:00
|
|
|
<Target Name="RestoreSrcPackages"
|
|
|
|
DependsOnTargets="SetupRestoreSrcPackagesInputsOutputs;Init"
|
|
|
|
Inputs="@(RestoreSrcPackagesInput)"
|
|
|
|
Outputs="@(RestoreSrcPackagesInput->'%(RelativeDir)/obj/project.assets.json');@(RestoreSrcPackagesInput->'%(RelativeDir)/obj/%(Filename).csproj.nuget.g.props');@(RestoreSrcPackagesInput->'%(RelativeDir)/obj/%(Filename).csproj.nuget.g.targets')">
|
|
|
|
|
|
|
|
<CallTarget Targets="CleanSrcLockFiles" />
|
|
|
|
|
2016-11-12 07:46:29 +00:00
|
|
|
<DotNetRestore ToolPath="$(DotNetPath)"
|
|
|
|
ProjectPath=""%(RestoreSrcPackagesInput.FullPath)"" />
|
2016-10-29 08:04:20 +00:00
|
|
|
|
|
|
|
</Target>
|
|
|
|
|
|
|
|
<Target Name="CleanSrcLockFiles" >
|
|
|
|
<ItemGroup>
|
|
|
|
<SrcLockFiles Include="$(RepoRoot)/src/**/project.assets.json;$(RepoRoot)/src/**/*.csproj.nuget.g.props;$(RepoRoot)/src/**/*.csproj.nuget.g.targets" />
|
|
|
|
</ItemGroup>
|
|
|
|
<Delete Files="@(SrcLockFiles)" />
|
|
|
|
</Target>
|
|
|
|
|
|
|
|
<Target Name="SetupRestoreSrcPackagesInputsOutputs">
|
|
|
|
<ItemGroup>
|
|
|
|
<RestoreSrcPackagesInput Include="$(RepoRoot)/src/**/*.csproj" Exclude="$(RepoRoot)/src/**/%24projectName%24.csproj"/>
|
|
|
|
</ItemGroup>
|
|
|
|
</Target>
|
|
|
|
|
|
|
|
<Target Name="RestoreToolsPackages"
|
|
|
|
DependsOnTargets="SetupRestoreToolsPackagesInputsOutputs;Init"
|
|
|
|
Inputs="@(RestoreToolsPackagesInput)"
|
|
|
|
Outputs="@(RestoreToolsPackagesInput->'%(RelativeDir)/obj/project.assets.json');@(RestoreToolsPackagesInput->'%(RelativeDir)/obj/%(Filename).csproj.nuget.g.props');@(RestoreToolsPackagesInput->'%(RelativeDir)/obj/%(Filename).csproj.nuget.g.targets')">
|
|
|
|
|
|
|
|
<CallTarget Targets="CleanToolsLockFiles" />
|
|
|
|
|
2017-01-05 20:07:03 +00:00
|
|
|
<DotNetRestore ToolPath="$(DotNetPath)"
|
2016-11-12 07:46:29 +00:00
|
|
|
ProjectPath=""%(RestoreToolsPackagesInput.FullPath)"" />
|
2016-10-29 08:04:20 +00:00
|
|
|
|
|
|
|
</Target>
|
|
|
|
|
|
|
|
<Target Name="CleanToolsLockFiles" >
|
|
|
|
<ItemGroup>
|
|
|
|
<ToolsLockFiles Include="$(RepoRoot)/tools/**/project.assets.json;$(RepoRoot)/tools/**/*.csproj.nuget.g.props;$(RepoRoot)/tools/**/*.csproj.nuget.g.targets" />
|
|
|
|
</ItemGroup>
|
|
|
|
<Delete Files="@(ToolsLockFiles)" />
|
|
|
|
</Target>
|
|
|
|
|
|
|
|
<Target Name="SetupRestoreToolsPackagesInputsOutputs">
|
|
|
|
<ItemGroup>
|
|
|
|
<RestoreToolsPackagesInput Include="$(RepoRoot)/tools/**/*.csproj" />
|
|
|
|
</ItemGroup>
|
|
|
|
</Target>
|
|
|
|
|
2016-07-22 23:01:32 +00:00
|
|
|
</Project>
|