![dotnet-maestro[bot]](/assets/img/avatar_default.png)
* Update dependencies from https://github.com/dotnet/arcade build 20190626.44 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19326.44 * Add missing feed * Use PackageDownload * Update dependencies from https://github.com/dotnet/arcade build 20190627.39 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19327.39 * Use new apphost package and stop downloading extra packages
443 lines
28 KiB
XML
443 lines
28 KiB
XML
<Project>
|
|
<PropertyGroup>
|
|
<RedistLayoutPath>$(BaseOutputPath)$(Configuration)\dotnet\</RedistLayoutPath>
|
|
<SdkInternalLayoutPath>$(BaseOutputPath)$(Configuration)\dotnet-internal\</SdkInternalLayoutPath>
|
|
<DownloadsFolder>$(IntermediateOutputPath)downloads\</DownloadsFolder>
|
|
</PropertyGroup>
|
|
|
|
<Target Name="SetupBundledComponents" DependsOnTargets="GetCurrentRuntimeInformation;SetupFileExtensions;SetSdkVersionInfo;SetBuildDefaults">
|
|
<PropertyGroup>
|
|
<SdkOutputDirectory>$(RedistLayoutPath)sdk\$(SdkVersion)\</SdkOutputDirectory>
|
|
<CoreSetupBlobRootUrl Condition="'$(CoreSetupBlobRootUrl)' == ''">https://dotnetcli.azureedge.net/dotnet/</CoreSetupBlobRootUrl>
|
|
<DotnetExtensionsBlobRootUrl Condition="'$(DotnetExtensionsBlobRootUrl)' == ''">https://dotnetcli.blob.core.windows.net/dotnet/</DotnetExtensionsBlobRootUrl>
|
|
<DotnetToolsetBlobRootUrl Condition="'$(DotnetToolsetBlobRootUrl)' == ''">https://dotnetfeed.blob.core.windows.net/dotnet-toolset/</DotnetToolsetBlobRootUrl>
|
|
|
|
<CoreSetupRid Condition="'$(CoreSetupRid)' == ''">$(HostRid)</CoreSetupRid>
|
|
<CoreSetupRid Condition=" ('$(HostOSName)' == 'win' or '$(HostOSName)' == 'osx' or '$(HostOSName)' == 'freebsd') and '$(DotNetBuildFromSource)' != 'true' ">$(HostMonikerRid)</CoreSetupRid>
|
|
|
|
<!-- only the runtime OSX .pkgs have a `-internal` suffix -->
|
|
<InstallerStartSuffix Condition="'$(HostOSName)' == 'osx'">-internal</InstallerStartSuffix>
|
|
|
|
<!-- Downloaded Installers + Archives -->
|
|
|
|
<!-- Use the "x64" Rid when downloading Linux shared framework 'DEB' installer files. -->
|
|
<SharedFrameworkInstallerFileRid>$(CoreSetupRid)</SharedFrameworkInstallerFileRid>
|
|
<SharedFrameworkInstallerFileRid Condition=" '$(IsDebianBaseDistro)' == 'true' OR '$(IsRPMBasedDistro)' == 'true' ">x64</SharedFrameworkInstallerFileRid>
|
|
|
|
<!-- Use the "x64" Rid when downloading Linux runtime dependencies Debian package. -->
|
|
<RuntimeDepsInstallerFileRid>$(CoreSetupRid)</RuntimeDepsInstallerFileRid>
|
|
<RuntimeDepsInstallerFileRid Condition=" '$(IsDebianBaseDistro)' == 'true' ">x64</RuntimeDepsInstallerFileRid>
|
|
|
|
<DownloadedSharedHostInstallerFileName Condition=" '$(InstallerExtension)' != '' ">dotnet-host$(InstallerStartSuffix)-$(SharedHostVersion)-$(SharedFrameworkInstallerFileRid)$(InstallerExtension)</DownloadedSharedHostInstallerFileName>
|
|
<DownloadedHostFxrInstallerFileName Condition=" '$(InstallerExtension)' != '' ">dotnet-hostfxr$(InstallerStartSuffix)-$(HostFxrVersion)-$(SharedFrameworkInstallerFileRid)$(InstallerExtension)</DownloadedHostFxrInstallerFileName>
|
|
<DownloadedSharedFrameworkInstallerFileName Condition=" '$(InstallerExtension)' != '' ">dotnet-runtime$(InstallerStartSuffix)-$(MicrosoftNETCoreAppPackageVersion)-$(SharedFrameworkInstallerFileRid)$(InstallerExtension)</DownloadedSharedFrameworkInstallerFileName>
|
|
<DownloadedRuntimeDepsInstallerFileName Condition=" '$(InstallerExtension)' != '' ">dotnet-runtime-deps-$(SharedHostVersion)-$(RuntimeDepsInstallerFileRid)$(InstallerExtension)</DownloadedRuntimeDepsInstallerFileName>
|
|
<DownloadedWinFormsAndWpfSharedFrameworkInstallerFileName Condition=" '$(InstallerExtension)' != '' ">windowsdesktop-runtime-$(MicrosoftWindowsDesktopPackageVersion)-$(SharedFrameworkInstallerFileRid)$(InstallerExtension)</DownloadedWinFormsAndWpfSharedFrameworkInstallerFileName>
|
|
<DownloadedNetCoreAppTargetingPackInstallerFileName Condition=" '$(InstallerExtension)' != '' ">dotnet-targeting-pack-$(NetCoreAppTargetingPackVersion)-$(SharedFrameworkInstallerFileRid)$(InstallerExtension)</DownloadedNetCoreAppTargetingPackInstallerFileName>
|
|
<DownloadedNetCoreAppHostPackInstallerFileName Condition=" '$(InstallerExtension)' != '' ">dotnet-apphost-pack-$(NetCoreAppHostPackVersion)-$(SharedFrameworkInstallerFileRid)$(InstallerExtension)</DownloadedNetCoreAppHostPackInstallerFileName>
|
|
<DownloadedWindowsDesktopTargetingPackInstallerFileName Condition=" '$(InstallerExtension)' != '' ">windowsdesktop-targeting-pack-$(WindowsDesktopTargetingPackVersion)-$(SharedFrameworkInstallerFileRid)$(InstallerExtension)</DownloadedWindowsDesktopTargetingPackInstallerFileName>
|
|
<DownloadedNetStandardTargetingPackInstallerFileName Condition=" '$(InstallerExtension)' != '' ">netstandard-targeting-pack-$(NETStandardLibraryRefPackageVersion)-$(SharedFrameworkInstallerFileRid)$(InstallerExtension)</DownloadedNetStandardTargetingPackInstallerFileName>
|
|
<NetStandardTargetingPackTargetFramework>netstandard$(NETStandardLibraryRefPackageVersion.Split('.')[0])$(NETStandardLibraryRefPackageVersion.Split('.')[1])</NetStandardTargetingPackTargetFramework>
|
|
|
|
<!-- Use the portable "linux-x64" Rid when downloading Linux shared framework compressed file. -->
|
|
<SharedFrameworkRid>$(CoreSetupRid)</SharedFrameworkRid>
|
|
<SharedFrameworkRid Condition=" '$(ProductMonikerRid)' == 'linux-musl-x64' ">$(ProductMonikerRid)</SharedFrameworkRid>
|
|
<SharedFrameworkRid Condition=" '$(UsePortableLinuxSharedFramework)' == 'true' ">linux-$(Architecture)</SharedFrameworkRid>
|
|
<CombinedFrameworkHostCompressedFileName>dotnet-runtime-$(MicrosoftNETCoreAppPackageVersion)-$(SharedFrameworkRid)$(ArchiveExtension)</CombinedFrameworkHostCompressedFileName>
|
|
|
|
<AspNetCoreSharedFxInstallerRid>$(SharedFrameworkRid)</AspNetCoreSharedFxInstallerRid>
|
|
<AspNetCoreSharedFxInstallerRid Condition="'$(SharedFrameworkRid)' == 'rhel.6-x64'">linux-x64</AspNetCoreSharedFxInstallerRid>
|
|
<AspNetCoreSharedFxArchiveRid>$(AspNetCoreSharedFxInstallerRid)</AspNetCoreSharedFxArchiveRid>
|
|
<AspNetCoreSharedFxInstallerRid Condition="'$(InstallerExtension)' == '.deb' OR '$(InstallerExtension)' == '.rpm'">x64</AspNetCoreSharedFxInstallerRid>
|
|
|
|
<DownloadedAspNetCoreSharedFxInstallerFileName Condition=" '$(InstallerExtension)' != '' AND '$(HostOSName)' != 'osx' ">aspnetcore-runtime-$(AspNetCoreVersion)-$(AspNetCoreSharedFxInstallerRid)$(InstallerExtension)</DownloadedAspNetCoreSharedFxInstallerFileName>
|
|
<!-- Note: we use the "-internal" archives and installers that contain only the aspnetcore shared framework, and shouldn't overlap with Microsoft.NETCore.App. -->
|
|
<DownloadedAspNetCoreSharedFxInstallerFileName Condition=" '$(InstallerExtension)' == '.msi' ">aspnetcore-runtime-internal-$(AspNetCoreVersion)-$(AspNetCoreSharedFxInstallerRid).wixlib</DownloadedAspNetCoreSharedFxInstallerFileName>
|
|
<DownloadedAspNetTargetingPackInstallerFileName Condition=" '$(InstallerExtension)' != '' ">aspnetcore-targeting-pack-$(AspNetTargetingPackVersion)$(InstallerExtension)</DownloadedAspNetTargetingPackInstallerFileName>
|
|
<DownloadedAspNetTargetingPackInstallerFileName Condition=" '$(InstallerExtension)' == '.msi' ">aspnetcore-targeting-pack-$(AspNetTargetingPackVersion)-$(AspNetCoreSharedFxInstallerRid)$(InstallerExtension)</DownloadedAspNetTargetingPackInstallerFileName>
|
|
<AspNetTargetingPackArchiveFileName>aspnetcore-targeting-pack-$(AspNetCoreVersion)$(ArchiveExtension)</AspNetTargetingPackArchiveFileName>
|
|
<AspNetCoreSharedFxArchiveFileName>aspnetcore-runtime-internal-$(AspNetCoreVersion)-$(AspNetCoreSharedFxArchiveRid)$(ArchiveExtension)</AspNetCoreSharedFxArchiveFileName>
|
|
<WinFormsAndWpfSharedFxArchiveFileName>windowsdesktop-runtime-$(MicrosoftWindowsDesktopPackageVersion)-$(SharedFrameworkRid)$(ArchiveExtension)</WinFormsAndWpfSharedFxArchiveFileName>
|
|
|
|
<!-- Used to detect if ASP.NET Core is built against the same version of Microsoft.NETCore.App. -->
|
|
<AspNetCoreSharedFxBaseRuntimeVersionFileName>aspnetcore_base_runtime.version</AspNetCoreSharedFxBaseRuntimeVersionFileName>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup>
|
|
<CoreSetupRootUrl>$(CoreSetupBlobRootUrl)Runtime/</CoreSetupRootUrl>
|
|
<AspNetCoreSharedFxRootUrl>$(CoreSetupBlobRootUrl)aspnetcore/Runtime/</AspNetCoreSharedFxRootUrl>
|
|
<WinFormsAndWpfSharedFxRootUrl>$(CoreSetupRootUrl)</WinFormsAndWpfSharedFxRootUrl>
|
|
<CoreSetupDownloadDirectory>$(IntermediateDirectory)/coreSetupDownload/$(MicrosoftNETCoreAppPackageVersion)</CoreSetupDownloadDirectory>
|
|
<CombinedSharedHostAndFrameworkArchive>$(CoreSetupDownloadDirectory)/combinedSharedHostAndFrameworkArchive$(ArchiveExtension)</CombinedSharedHostAndFrameworkArchive>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Condition="'$(HostOSName)' == 'win'">
|
|
<AlternateAppHostRid Condition="'$(Architecture)' == 'x86'">win-x64</AlternateAppHostRid>
|
|
<AlternateAppHostRid Condition="'$(Architecture)' == 'x64'">win-x86</AlternateAppHostRid>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<BundledLayoutComponent Include="CombinedSharedHostAndFrameworkArchive">
|
|
<BaseUrl>$(CoreSetupRootUrl)$(MicrosoftNETCoreAppPackageVersion)</BaseUrl>
|
|
<DownloadFileName>$(CombinedFrameworkHostCompressedFileName)</DownloadFileName>
|
|
<AccessToken>$(CoreSetupBlobAccessTokenParam)</AccessToken>
|
|
<RelativeLayoutPath></RelativeLayoutPath>
|
|
</BundledLayoutComponent>
|
|
|
|
<BundledLayoutPackage Include="MicrosoftNetCoreAppTargetingPackNupkg">
|
|
<PackageName>Microsoft.NETCore.App.Ref</PackageName>
|
|
<PackageVersion>$(NetCoreAppTargetingPackVersion)</PackageVersion>
|
|
<TargetFramework>$(TargetFramework)</TargetFramework>
|
|
<RelativeLayoutPath>packs/%(PackageName)/%(PackageVersion)</RelativeLayoutPath>
|
|
</BundledLayoutPackage>
|
|
|
|
<BundledLayoutPackage Include="MicrosoftNetStandardTargetingPackNupkg">
|
|
<PackageName>NETStandard.Library.Ref</PackageName>
|
|
<PackageVersion>$(NETStandardLibraryRefPackageVersion)</PackageVersion>
|
|
<TargetFramework>$(NetStandardTargetingPackTargetFramework)</TargetFramework>
|
|
<RelativeLayoutPath>packs/%(PackageName)/%(PackageVersion)</RelativeLayoutPath>
|
|
</BundledLayoutPackage>
|
|
|
|
<BundledLayoutPackage Include="MicrosoftAspNetCoreAppTargetingPackNupkg">
|
|
<PackageName>Microsoft.AspNetCore.App.Ref</PackageName>
|
|
<PackageVersion>$(AspNetTargetingPackVersion)</PackageVersion>
|
|
<TargetFramework>$(TargetFramework)</TargetFramework>
|
|
<RelativeLayoutPath>packs/%(PackageName)/%(PackageVersion)</RelativeLayoutPath>
|
|
</BundledLayoutPackage>
|
|
|
|
<BundledLayoutPackage Include="MicrosoftWindowsDesktopAppTargetingPackNupkg">
|
|
<PackageName>Microsoft.WindowsDesktop.App.Ref</PackageName>
|
|
<PackageVersion>$(WindowsDesktopTargetingPackVersion)</PackageVersion>
|
|
<TargetFramework>$(TargetFramework)</TargetFramework>
|
|
<RelativeLayoutPath>packs/%(PackageName)/%(PackageVersion)</RelativeLayoutPath>
|
|
</BundledLayoutPackage>
|
|
|
|
<BundledLayoutPackage Include="MicrosoftNetCoreAppHostPackNupkg">
|
|
<PackageName>Microsoft.NETCore.App.Host.$(SharedFrameworkRid)</PackageName>
|
|
<PackageVersion>$(NetCoreAppHostPackVersion)</PackageVersion>
|
|
<TargetFramework>$(TargetFramework)</TargetFramework>
|
|
<RelativeLayoutPath>packs/%(PackageName)/%(PackageVersion)</RelativeLayoutPath>
|
|
</BundledLayoutPackage>
|
|
|
|
<BundledLayoutPackage Include="MicrosoftNetCoreAppHostPackNupkg_Alternate" Condition="'$(AlternateAppHostRid)' != ''">
|
|
<PackageName>Microsoft.NETCore.App.Host.$(AlternateAppHostRid)</PackageName>
|
|
<PackageVersion>$(NetCoreAppHostPackVersion)</PackageVersion>
|
|
<TargetFramework>$(TargetFramework)</TargetFramework>
|
|
<RelativeLayoutPath>packs/%(PackageName)/%(PackageVersion)</RelativeLayoutPath>
|
|
</BundledLayoutPackage>
|
|
|
|
<BundledInstallerComponent Include="DownloadedRuntimeDepsInstallerFile"
|
|
Condition="('$(IsDebianBaseDistro)' == 'true' OR '$(IsRPMBasedDistro)' == 'true') And '$(SkipBuildingInstallers)' != 'true' And '$(InstallerExtension)' != '' And !$(Architecture.StartsWith('arm'))">
|
|
<BaseUrl>$(CoreSetupRootUrl)$(MicrosoftNETCoreAppPackageVersion)</BaseUrl>
|
|
<DownloadFileName>$(DownloadedRuntimeDepsInstallerFileName)</DownloadFileName>
|
|
<AccessToken>$(CoreSetupBlobAccessTokenParam)</AccessToken>
|
|
</BundledInstallerComponent>
|
|
|
|
<BundledInstallerComponent Include="DownloadedSharedFrameworkInstallerFile"
|
|
Condition="'$(SkipBuildingInstallers)' != 'true' And '$(InstallerExtension)' != '' And !$(Architecture.StartsWith('arm'))">
|
|
<BaseUrl>$(CoreSetupRootUrl)$(MicrosoftNETCoreAppPackageVersion)</BaseUrl>
|
|
<DownloadFileName>$(DownloadedSharedFrameworkInstallerFileName)</DownloadFileName>
|
|
<AccessToken>$(CoreSetupBlobAccessTokenParam)</AccessToken>
|
|
</BundledInstallerComponent>
|
|
|
|
<BundledInstallerComponent Include="DownloadedSharedHostInstallerFile"
|
|
Condition="'$(SkipBuildingInstallers)' != 'true' And '$(InstallerExtension)' != '' And !$(Architecture.StartsWith('arm'))">
|
|
<BaseUrl>$(CoreSetupRootUrl)$(SharedHostVersion)</BaseUrl>
|
|
<DownloadFileName>$(DownloadedSharedHostInstallerFileName)</DownloadFileName>
|
|
<AccessToken>$(CoreSetupBlobAccessTokenParam)</AccessToken>
|
|
</BundledInstallerComponent>
|
|
|
|
<BundledInstallerComponent Include="DownloadedHostFxrInstallerFile"
|
|
Condition="'$(SkipBuildingInstallers)' != 'true' And '$(InstallerExtension)' != '' And !$(Architecture.StartsWith('arm'))">
|
|
<BaseUrl>$(CoreSetupRootUrl)$(HostFxrVersion)</BaseUrl>
|
|
<DownloadFileName>$(DownloadedHostFxrInstallerFileName)</DownloadFileName>
|
|
<AccessToken>$(CoreSetupBlobAccessTokenParam)</AccessToken>
|
|
</BundledInstallerComponent>
|
|
|
|
<BundledInstallerComponent Include="DownloadedNetCoreAppTargetingPackInstallerFile"
|
|
Condition="'$(SkipBuildingInstallers)' != 'true' And '$(InstallerExtension)' != '' And !$(Architecture.StartsWith('arm'))">
|
|
<BaseUrl>$(CoreSetupRootUrl)$(NetCoreAppTargetingPackVersion)</BaseUrl>
|
|
<DownloadFileName>$(DownloadedNetCoreAppTargetingPackInstallerFileName)</DownloadFileName>
|
|
<AccessToken>$(CoreSetupBlobAccessTokenParam)</AccessToken>
|
|
</BundledInstallerComponent>
|
|
|
|
<BundledInstallerComponent Include="DownloadedNetStandardTargetingPackInstallerFile"
|
|
Condition="'$(SkipBuildingInstallers)' != 'true' And '$(InstallerExtension)' != '' And !$(Architecture.StartsWith('arm'))">
|
|
<BaseUrl>$(CoreSetupRootUrl)$(MicrosoftNETCoreAppPackageVersion)</BaseUrl>
|
|
<DownloadFileName>$(DownloadedNetStandardTargetingPackInstallerFileName)</DownloadFileName>
|
|
<AccessToken>$(CoreSetupBlobAccessTokenParam)</AccessToken>
|
|
</BundledInstallerComponent>
|
|
|
|
<BundledInstallerComponent Include="DownloadedNetCoreAppHostPackInstallerFile"
|
|
Condition="'$(SkipBuildingInstallers)' != 'true' And '$(InstallerExtension)' != '' And !$(Architecture.StartsWith('arm'))">
|
|
<BaseUrl>$(CoreSetupRootUrl)$(MicrosoftNETCoreAppPackageVersion)</BaseUrl>
|
|
<DownloadFileName>$(DownloadedNetCoreAppHostPackInstallerFileName)</DownloadFileName>
|
|
<AccessToken>$(CoreSetupBlobAccessTokenParam)</AccessToken>
|
|
</BundledInstallerComponent>
|
|
|
|
<BundledInstallerComponent Include="DownloadedWindowsDesktopTargetingPackInstallerFile"
|
|
Condition="'$(InstallerExtension)' == '.msi' And '$(SkipBuildingInstallers)' != 'true' And !$(Architecture.StartsWith('arm'))">
|
|
<BaseUrl>$(CoreSetupRootUrl)$(WindowsDesktopTargetingPackVersion)</BaseUrl>
|
|
<DownloadFileName>$(DownloadedWindowsDesktopTargetingPackInstallerFileName)</DownloadFileName>
|
|
<AccessToken>$(CoreSetupBlobAccessTokenParam)</AccessToken>
|
|
</BundledInstallerComponent>
|
|
|
|
<BundledLayoutComponent Include="ToolsetArchive">
|
|
<BaseUrl>$(DotnetToolsetBlobRootUrl)Toolset/$(MicrosoftDotnetToolsetInternalPackageVersion)</BaseUrl>
|
|
<DownloadFileName>dotnet-toolset-internal-$(MicrosoftDotnetToolsetInternalPackageVersion).zip</DownloadFileName>
|
|
<AccessToken>$(CoreSetupBlobAccessTokenParam)</AccessToken>
|
|
<RelativeLayoutPath>sdk/$(SdkVersion)</RelativeLayoutPath>
|
|
</BundledLayoutComponent>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup Condition=" '$(IncludeAspNetCoreRuntime)' != 'false' ">
|
|
<BundledLayoutComponent Include="DownloadedAspNetCoreSharedFxArchiveFile">
|
|
<BaseUrl>$(AspNetCoreSharedFxRootUrl)$(AspNetCoreVersion)</BaseUrl>
|
|
<DownloadFileName>$(AspNetCoreSharedFxArchiveFileName)</DownloadFileName>
|
|
<AccessToken>$(CoreSetupBlobAccessTokenParam)</AccessToken>
|
|
<RelativeLayoutPath></RelativeLayoutPath>
|
|
</BundledLayoutComponent>
|
|
|
|
<!-- The AspNet does not provide native MacOS PKG installers at this time; we use AspNet archives.
|
|
https://github.com/aspnet/AspNetCore/issues/8806 -->
|
|
<BundledLayoutComponent Include="DownloadedAspNetTargetingPackArchiveFile"
|
|
Condition="'$(InstallerExtension)' == '.pkg' And '$(SkipBuildingInstallers)' != 'true' And '$(InstallerExtension)' != '' And !$(Architecture.StartsWith('arm'))">
|
|
<BaseUrl>$(AspNetCoreSharedFxRootUrl)$(AspNetCoreVersion)</BaseUrl>
|
|
<DownloadFileName>$(AspNetTargetingPackArchiveFileName)</DownloadFileName>
|
|
<AccessToken>$(CoreSetupBlobAccessTokenParam)</AccessToken>
|
|
<RelativeLayoutPath></RelativeLayoutPath>
|
|
</BundledLayoutComponent>
|
|
|
|
<BundledInstallerComponent Include="DownloadedAspNetTargetingPackInstallerFile"
|
|
Condition="'$(InstallerExtension)' != '.pkg' And '$(SkipBuildingInstallers)' != 'true' And '$(InstallerExtension)' != '' And !$(Architecture.StartsWith('arm'))">
|
|
<BaseUrl>$(AspNetCoreSharedFxRootUrl)$(AspNetTargetingPackVersion)</BaseUrl>
|
|
<DownloadFileName>$(DownloadedAspNetTargetingPackInstallerFileName)</DownloadFileName>
|
|
<AccessToken>$(CoreSetupBlobAccessTokenParam)</AccessToken>
|
|
</BundledInstallerComponent>
|
|
|
|
<BundledInstallerComponent Include="DownloadedAspNetCoreSharedFxInstallerFile"
|
|
Condition="'$(SkipBuildingInstallers)' != 'true' AND '$(DownloadedAspNetCoreSharedFxInstallerFileName)' != '' And '$(InstallerExtension)' != '' And !$(Architecture.StartsWith('arm'))">
|
|
<BaseUrl>$(AspNetCoreSharedFxRootUrl)$(AspNetCoreVersion)</BaseUrl>
|
|
<DownloadFileName>$(DownloadedAspNetCoreSharedFxInstallerFileName)</DownloadFileName>
|
|
<AccessToken>$(CoreSetupBlobAccessTokenParam)</AccessToken>
|
|
</BundledInstallerComponent>
|
|
|
|
<BundledInstallerComponent Include="AspNetCoreSharedFxBaseRuntimeVersionFile"
|
|
Condition="!$(Architecture.StartsWith('arm'))">
|
|
<BaseUrl>$(AspNetCoreSharedFxRootUrl)$(AspNetCoreVersion)</BaseUrl>
|
|
<DownloadFileName>$(AspNetCoreSharedFxBaseRuntimeVersionFileName)</DownloadFileName>
|
|
<AccessToken>$(CoreSetupBlobAccessTokenParam)</AccessToken>
|
|
</BundledInstallerComponent>
|
|
</ItemGroup>
|
|
|
|
<PropertyGroup>
|
|
<IncludeWpfAndWinForms Condition=" '$(IncludeWpfAndWinForms)' == '' AND '$(Architecture)' == 'arm'">false</IncludeWpfAndWinForms>
|
|
<IncludeWpfAndWinForms Condition=" '$(IncludeWpfAndWinForms)' == '' AND '$(OS)' == 'Windows_NT' ">true</IncludeWpfAndWinForms>
|
|
<IncludeWpfAndWinForms Condition=" '$(IncludeWpfAndWinForms)' == '' ">false</IncludeWpfAndWinForms>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup Condition=" '$(IncludeWpfAndWinForms)' != 'false' ">
|
|
<BundledLayoutComponent Include="WinFormsAndWpfSharedFxArchiveFile">
|
|
<BaseUrl>$(WinFormsAndWpfSharedFxRootUrl)$(MicrosoftWindowsDesktopPackageVersion)</BaseUrl>
|
|
<DownloadFileName>$(WinFormsAndWpfSharedFxArchiveFileName)</DownloadFileName>
|
|
<AccessToken>$(CoreSetupBlobAccessTokenParam)</AccessToken>
|
|
<RelativeLayoutPath>shared</RelativeLayoutPath>
|
|
</BundledLayoutComponent>
|
|
|
|
<BundledInstallerComponent Include="DownloadedWinFormsAndWpfSharedFrameworkInstallerFile"
|
|
Condition="'$(SkipBuildingInstallers)' != 'true' And '$(InstallerExtension)' != '' And !$(Architecture.StartsWith('arm'))">
|
|
<BaseUrl>$(WinFormsAndWpfSharedFxRootUrl)$(MicrosoftWindowsDesktopPackageVersion)</BaseUrl>
|
|
<DownloadFileName>$(DownloadedWinFormsAndWpfSharedFrameworkInstallerFileName)</DownloadFileName>
|
|
<AccessToken>$(CoreSetupBlobAccessTokenParam)</AccessToken>
|
|
</BundledInstallerComponent>
|
|
</ItemGroup>
|
|
|
|
</Target>
|
|
|
|
<Target Name="DownloadBundledComponents" DependsOnTargets="SetupBundledComponents">
|
|
<ItemGroup>
|
|
<BundledLayoutComponent>
|
|
<DownloadDestination>$(DownloadsFolder)%(DownloadFileName)</DownloadDestination>
|
|
</BundledLayoutComponent>
|
|
<BundledInstallerComponent>
|
|
<DownloadDestination>$(DownloadsFolder)%(DownloadFileName)</DownloadDestination>
|
|
</BundledInstallerComponent>
|
|
<ComponentToDownload Include="@(BundledLayoutComponent);@(BundledInstallerComponent)">
|
|
<ShouldDownload Condition="!Exists('%(DownloadDestination)')">true</ShouldDownload>
|
|
</ComponentToDownload>
|
|
</ItemGroup>
|
|
|
|
<DownloadFile Condition=" '@(ComponentToDownload)' != '' And '%(ComponentToDownload.ShouldDownload)' == 'true'"
|
|
Uri="%(ComponentToDownload.BaseUrl)/%(ComponentToDownload.DownloadFileName)"
|
|
DestinationPath="%(ComponentToDownload.DownloadDestination)" />
|
|
|
|
<ItemGroup>
|
|
<BundledLayoutPackageDownloadProject Include="$(MSBuildThisFileDirectory)DownloadPackage.csproj">
|
|
<Properties>
|
|
PackageToRestore=%(BundledLayoutPackage.PackageName);
|
|
PackageVersionToRestore=%(BundledLayoutPackage.PackageVersion);
|
|
TargetFramework=%(BundledLayoutPackage.TargetFramework);
|
|
LayoutPackageDescription=%(BundledLayoutPackage.Identity)
|
|
</Properties>
|
|
</BundledLayoutPackageDownloadProject>
|
|
</ItemGroup>
|
|
|
|
<MSBuild
|
|
BuildInParallel="False"
|
|
Projects="@(BundledLayoutPackageDownloadProject)">
|
|
</MSBuild>
|
|
|
|
<ItemGroup>
|
|
<!-- Use lowercase package name in package path -->
|
|
<BundledLayoutPackage>
|
|
<LoweredPackageName>$([MSBuild]::ValueOrDefault('%(BundledLayoutPackage.PackageName)', '').ToLower())</LoweredPackageName>
|
|
</BundledLayoutPackage>
|
|
|
|
<BundledLayoutPackageDownloadFiles Include="$(NuGetPackageRoot)\%(BundledLayoutPackage.LoweredPackageName)\%(BundledLayoutPackage.PackageVersion)\**\*.*">
|
|
<RelativeLayoutPath>%(BundledLayoutPackage.RelativeLayoutPath)</RelativeLayoutPath>
|
|
<LayoutPackageDescription>%(BundledLayoutPackage.Identity)</LayoutPackageDescription>
|
|
</BundledLayoutPackageDownloadFiles>
|
|
|
|
<!-- Remove files from the root of the package, as these are either files NuGet writes, or not necessary -->
|
|
<BundledLayoutPackageDownloadFiles Remove="$(NuGetPackageRoot)\%(BundledLayoutPackage.LoweredPackageName)\%(BundledLayoutPackage.PackageVersion)\*.*" />
|
|
|
|
<!-- Set destination path in layout -->
|
|
<BundledLayoutPackageDownloadFiles>
|
|
<DestinationPath>%(BundledLayoutPackageDownloadFiles.RecursiveDir)%(BundledLayoutPackageDownloadFiles.Filename)%(BundledLayoutPackageDownloadFiles.Extension)</DestinationPath>
|
|
</BundledLayoutPackageDownloadFiles>
|
|
<BundledLayoutPackageDownloadFiles>
|
|
<DestinationPath>$(RedistLayoutPath)/%(BundledLayoutPackageDownloadFiles.RelativeLayoutPath)/%(BundledLayoutPackageDownloadFiles.DestinationPath)</DestinationPath>
|
|
</BundledLayoutPackageDownloadFiles>
|
|
<BundledLayoutPackageDownloadFiles>
|
|
<DestinationPath>$([MSBuild]::NormalizePath(%(BundledLayoutPackageDownloadFiles.DestinationPath)))</DestinationPath>
|
|
</BundledLayoutPackageDownloadFiles>
|
|
|
|
<!-- Creating a new item here isn't strictly necessary, but makes it easier to see what's going on in the .binlog,
|
|
since the metadata updates don't show up there -->
|
|
<BundledLayoutPackageDownloadFilesWithDestination Include="@(BundledLayoutPackageDownloadFiles)"/>
|
|
</ItemGroup>
|
|
</Target>
|
|
|
|
<Target Name="CleanLayoutPath">
|
|
<!-- Remove everything from the publish directory so we don't have left over items from previous builds -->
|
|
<RemoveDir Directories="$(RedistLayoutPath)" />
|
|
<MakeDir Directories="$(RedistLayoutPath)" />
|
|
</Target>
|
|
|
|
<Target Name="LayoutBundledComponents">
|
|
<ExtractArchiveToDirectory SourceArchive="%(BundledLayoutComponent.DownloadDestination)"
|
|
DestinationDirectory="$(RedistLayoutPath)/%(BundledLayoutComponent.RelativeLayoutPath)" />
|
|
|
|
<Copy SourceFiles="@(BundledLayoutPackageDownloadFilesWithDestination)"
|
|
DestinationFiles="@(BundledLayoutPackageDownloadFilesWithDestination->'%(DestinationPath)')"
|
|
SkipUnchangedFiles="true"
|
|
/>
|
|
|
|
</Target>
|
|
|
|
<Target Name="RetargetTools">
|
|
<PropertyGroup>
|
|
<ReplacementPattern>"version": ".*"</ReplacementPattern>
|
|
<ReplacementString>"version": "$(MicrosoftNETCoreAppPackageVersion)"</ReplacementString>
|
|
</PropertyGroup>
|
|
<ItemGroup>
|
|
<ToolRuntimeConfigPath Include="$(RedistLayoutPath)sdk/$(SdkVersion)/**/*.runtimeconfig.json" />
|
|
</ItemGroup>
|
|
<ReplaceFileContents
|
|
InputFiles="@(ToolRuntimeConfigPath)"
|
|
DestinationFiles="@(ToolRuntimeConfigPath)"
|
|
ReplacementPatterns="$(ReplacementPattern)"
|
|
ReplacementStrings="$(ReplacementString)" />
|
|
</Target>
|
|
|
|
<Target Name="GenerateVersionFile" DependsOnTargets="SetupBundledComponents;GetCoreSdkGitCommitInfo">
|
|
<WriteLinesToFile File="$(SdkOutputDirectory).version"
|
|
Lines="$(GitCommitHash);$(SdkVersion);$(Rid)"
|
|
Overwrite="true" />
|
|
</Target>
|
|
|
|
<Target Name="LayoutAppHostTemplate" DependsOnTargets="RunResolvePackageDependencies">
|
|
|
|
<PropertyGroup>
|
|
<NETCoreDotNetAppHostPackageName>Microsoft.NETCore.App.Host.$(SharedFrameworkRid)</NETCoreDotNetAppHostPackageName>
|
|
<AppHostRestorePath>$(IntermediateOutputPath)AppHostRestore\</AppHostRestorePath>
|
|
<AppHostTemplatePath>$(SdkOutputDirectory)AppHostTemplate</AppHostTemplatePath>
|
|
</PropertyGroup>
|
|
|
|
<RemoveDir Directories="$(AppHostRestorePath)" />
|
|
<MakeDir Directories="$(AppHostRestorePath)" />
|
|
|
|
<ItemGroup>
|
|
<AppHostTemplateDownloadPackageProject Include="$(MSBuildThisFileDirectory)DownloadPackage.csproj">
|
|
<Properties>
|
|
PackageToRestore=$(NETCoreDotNetAppHostPackageName);
|
|
PackageVersionToRestore=$(MicrosoftNETCoreDotNetAppHostPackageVersion);
|
|
TargetFramework=$(TargetFramework);
|
|
RestorePackagesPath=$(AppHostRestorePath);
|
|
RuntimeIdentifier=$(Rid)
|
|
</Properties>
|
|
</AppHostTemplateDownloadPackageProject>
|
|
</ItemGroup>
|
|
|
|
<MSBuild
|
|
BuildInParallel="False"
|
|
Projects="@(AppHostTemplateDownloadPackageProject)">
|
|
</MSBuild>
|
|
|
|
<PropertyGroup>
|
|
<AppHostExecutableName>AppHost$(ExeExtension)</AppHostExecutableName>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<AllFileOfRestoredAppHostPackage Include="$(AppHostRestorePath)\**\*.*" />
|
|
<NativeRestoredAppHostNETCore
|
|
Include="@(AllFileOfRestoredAppHostPackage)"
|
|
Condition="'%(FileName)%(Extension)' == '$(AppHostExecutableName)'"/>
|
|
</ItemGroup>
|
|
|
|
<Error Condition="@(NativeRestoredAppHostNETCore->Distinct()->Count()) != 1"
|
|
Text="Failed to determine the $(NETCoreDotNetAppHostPackageName) executable in @(AllFileOfRestoredAppHostPackage)" />
|
|
|
|
<Copy
|
|
SourceFiles="@(NativeRestoredAppHostNETCore)"
|
|
DestinationFolder="$(AppHostTemplatePath)" />
|
|
|
|
<Message Text="Copy from @(NativeRestoredAppHostNETCore) to $(AppHostTemplatePath)."
|
|
Importance="High" />
|
|
|
|
</Target>
|
|
|
|
<Target Name="GenerateLayout"
|
|
DependsOnTargets="DownloadBundledComponents;
|
|
CleanLayoutPath;
|
|
LayoutBundledComponents;
|
|
GenerateVersionFile;
|
|
GenerateBundledVersions;
|
|
LayoutRuntimeGraph;
|
|
LayoutTemplates;
|
|
LayoutBundledTools;
|
|
RetargetTools;
|
|
CrossgenLayout;
|
|
LayoutAppHostTemplate;
|
|
SignLayout"
|
|
BeforeTargets="AfterBuild">
|
|
|
|
</Target>
|
|
|
|
<Target Name="GenerateInternalLayout"
|
|
DependsOnTargets="GenerateLayout"
|
|
BeforeTargets="AfterBuild">
|
|
|
|
<RemoveDir Directories="$(SdkInternalLayoutPath)" />
|
|
<MakeDir Directories="$(SdkInternalLayoutPath)" />
|
|
|
|
<!-- Create "SDK Internal" layout to create the MSI to bundle -->
|
|
<ItemGroup>
|
|
<SdkInternalFiles Include="$(RedistLayoutPath)sdk/$(SdkVersion)/**/*.*"/>
|
|
</ItemGroup>
|
|
|
|
<Copy SourceFiles="@(SdkInternalFiles)"
|
|
DestinationFiles="@(SdkInternalFiles -> '$(SdkInternalLayoutPath)sdk\$(SdkVersion)\%(RecursiveDir)%(Filename)%(Extension)')"/>
|
|
|
|
</Target>
|
|
</Project>
|