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">
|
|
|
|
<UsingTask TaskName="PrepareTargets" AssemblyFile="$(CLIBuildDll)" />
|
|
|
|
<UsingTask TaskName="GetCurrentRuntimeInformation" AssemblyFile="$(CLIBuildDll)" />
|
2016-06-27 18:45:51 +00:00
|
|
|
<UsingTask TaskName="GenerateBuildVersionInfo" AssemblyFile="$(CLIBuildDll)" />
|
2016-06-28 02:09:30 +00:00
|
|
|
<UsingTask TaskName="CheckPrereqs" AssemblyFile="$(CLIBuildDll)" />
|
|
|
|
<UsingTask TaskName="SetEnvVar" AssemblyFile="$(CLIBuildDll)" />
|
2016-06-28 23:19:42 +00:00
|
|
|
<UsingTask TaskName="DotNetRestore" AssemblyFile="$(CLIBuildDll)" />
|
2016-06-28 02:09:30 +00:00
|
|
|
|
|
|
|
<Target DependsOnTargets="BuildDotnetCliBuildFramework" Name="Prepare">
|
|
|
|
<PrepareTargets />
|
|
|
|
</Target>
|
2016-06-27 18:45:51 +00:00
|
|
|
|
2016-06-28 23:19:42 +00:00
|
|
|
<Target Name="Init">
|
2016-06-27 18:45:51 +00:00
|
|
|
<!-- Current Runtime Information -->
|
2016-06-28 02:09:30 +00:00
|
|
|
<GetCurrentRuntimeInformation>
|
|
|
|
<Output TaskParameter="Rid" PropertyName="Rid" />
|
|
|
|
<Output TaskParameter="Architecture" PropertyName="Architecture" />
|
|
|
|
<Output TaskParameter="OSName" PropertyName="OSName" />
|
|
|
|
</GetCurrentRuntimeInformation>
|
2016-06-27 18:45:51 +00:00
|
|
|
|
|
|
|
<!-- Common Properties -->
|
|
|
|
<PropertyGroup>
|
2016-06-28 23:19:42 +00:00
|
|
|
<Stage0Path Condition=" '$(OSName)' == 'win' ">$(RepoRoot)/.dotnet_stage0/Windows/$(Architecture)</Stage0Path>
|
2016-06-29 00:03:10 +00:00
|
|
|
<Stage0Path Condition=" '$(OSName)' == 'osx' ">$(RepoRoot)/.dotnet_stage0/Darwin</Stage0Path>
|
|
|
|
<Stage0Path Condition=" '$(Stage0Path)' == '' ">$(RepoRoot)/.dotnet_stage0/Linux</Stage0Path>
|
2016-06-28 23:19:42 +00:00
|
|
|
<DotNetPath>$(Stage0Path)</DotNetPath>
|
|
|
|
|
2016-06-27 18:45:51 +00:00
|
|
|
<BaseOutputDirectory>$(RepoRoot)/artifacts/$(Rid)</BaseOutputDirectory>
|
|
|
|
<OutputDirectory>$(BaseOutputDirectory)/stage2</OutputDirectory>
|
|
|
|
<Stage2CompilationDirectory>$(BaseOutputDirectory)/stage2compilation</Stage2CompilationDirectory>
|
|
|
|
<IntermediateDirectory>$(BaseOutputDirectory)/intermediate</IntermediateDirectory>
|
2016-06-28 02:09:30 +00:00
|
|
|
<PackagesDirectory>$(BaseOutputDirectory)/packages</PackagesDirectory>
|
2016-06-28 01:26:57 +00:00
|
|
|
<SymbolsOutputDirectory>$(BaseOutputDirectory)/stage2symbols</SymbolsOutputDirectory>
|
2016-06-27 18:45:51 +00:00
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<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" />
|
|
|
|
<Output TaskParameter="CommitHash" PropertyName="CommitHash" />
|
|
|
|
<Output TaskParameter="CommitCount" PropertyName="CommitCount" />
|
|
|
|
<Output TaskParameter="ReleaseSuffix" PropertyName="ReleaseSuffix" />
|
|
|
|
<Output TaskParameter="VersionSuffix" PropertyName="VersionSuffix" />
|
|
|
|
<Output TaskParameter="SimpleVersion" PropertyName="SimpleVersion" />
|
|
|
|
<Output TaskParameter="NugetVersion" PropertyName="NugetVersion" />
|
|
|
|
<Output TaskParameter="MsiVersion" PropertyName="MsiVersion" />
|
|
|
|
<Output TaskParameter="VersionBadgeMoniker" PropertyName="VersionBadgeMoniker" />
|
|
|
|
<Output TaskParameter="Channel" PropertyName="Channel" />
|
|
|
|
<Output TaskParameter="BranchName" PropertyName="BranchName" />
|
2016-06-27 18:45:51 +00:00
|
|
|
</GenerateBuildVersionInfo>
|
|
|
|
|
|
|
|
<PropertyGroup>
|
2016-06-28 02:09:30 +00:00
|
|
|
<VersionBadge>$(BaseOutputDirectory)/$(VersionBadgeMoniker)_$(Configuration)_version_badge.svg</VersionBadge>
|
|
|
|
<SdkVersion>$(NugetVersion)</SdkVersion>
|
2016-06-28 01:26:57 +00:00
|
|
|
|
|
|
|
<SdkProjectJsonVersion>$(VersionMajor).$(VersionMinor).$(VersionPatch)-preview3-$(CommitCount)</SdkProjectJsonVersion>
|
|
|
|
<ProjectModelProjectJsonVersion>$(VersionMajor).$(VersionMinor).$(VersionPatch)-rc4-$(CommitCount)</ProjectModelProjectJsonVersion>
|
|
|
|
<DependencyModelAndInternalAbstractionsProjectJsonVersion>$(VersionMajor).$(VersionMinor).1-beta-$(CommitCount)</DependencyModelAndInternalAbstractionsProjectJsonVersion>
|
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>
|
|
|
|
|
|
|
|
<ProductMonikerRid Condition=" '$(Rid)' == 'ubuntu.16.04-x64' Or '$(Rid)' == 'fedora.23-x64' Or '$(Rid)' == 'opensuse.13.2-x64' ">$(Rid)</ProductMonikerRid>
|
|
|
|
<ProductMonikerRid Condition=" '$(ProductMonikerRid)' == '' ">$(OSName)-$(Architecture)</ProductMonikerRid>
|
|
|
|
|
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 -->
|
|
|
|
<SharedHostCompressedFile>$(PackagesDirectory)/dotnet-host-$(ProductMonikerRid).$(SharedHostVersion)$(ArchiveExtension)</SharedHostCompressedFile>
|
|
|
|
<SharedHostInstallerFile Condition=" '$(InstallerExtension)' != '' ">$(PackagesDirectory)/dotnet-host-$(ProductMonikerRid).$(SharedHostVersion)$(InstallerExtension)</SharedHostInstallerFile>
|
|
|
|
|
|
|
|
<HostFxrCompressedFile>$(PackagesDirectory)/dotnet-hostfxr-$(ProductMonikerRid).$(HostFxrVersion)$(ArchiveExtension)</HostFxrCompressedFile>
|
|
|
|
<HostFxrInstallerFile Condition=" '$(InstallerExtension)' != '' ">$(PackagesDirectory)/dotnet-hostfxr-$(ProductMonikerRid).$(HostFxrVersion)$(InstallerExtension)</HostFxrInstallerFile>
|
|
|
|
|
|
|
|
<SharedFrameworkCompressedFile>$(PackagesDirectory)/dotnet-sharedframework-$(ProductMonikerRid).$(SharedFrameworkVersion)$(ArchiveExtension)</SharedFrameworkCompressedFile>
|
|
|
|
<SharedFrameworkInstallerFile Condition=" '$(InstallerExtension)' != '' ">$(PackagesDirectory)/dotnet-sharedframework-$(ProductMonikerRid).$(SharedFrameworkVersion)$(InstallerExtension)</SharedFrameworkInstallerFile>
|
|
|
|
|
|
|
|
<CombinedFrameworkHostCompressedFile>$(PackagesDirectory)/dotnet-$(ProductMonikerRid).$(SharedFrameworkVersion)$(ArchiveExtension)</CombinedFrameworkHostCompressedFile>
|
|
|
|
<CombinedFrameworkHostInstallerFile Condition=" '$(BundleExtension)' != '' ">$(PackagesDirectory)/dotnet-$(ProductMonikerRid).$(SharedFrameworkVersion)$(BundleExtension)</CombinedFrameworkHostInstallerFile>
|
|
|
|
|
2016-06-27 18:45:51 +00:00
|
|
|
<SdkBrandName>Microsoft .NET Core 1.0.0 - SDK Preview 2</SdkBrandName>
|
|
|
|
</PropertyGroup>
|
2016-06-28 02:09:30 +00:00
|
|
|
|
|
|
|
<CheckPrereqs />
|
|
|
|
|
|
|
|
<!-- SetTelemetryProfile -->
|
|
|
|
<SetEnvVar Name="DOTNET_CLI_TELEMETRY_PROFILE" Value="https://github.com/dotnet/cli;$(CommitHash)" />
|
2016-06-27 18:45:51 +00:00
|
|
|
</Target>
|
2016-06-28 23:19:42 +00:00
|
|
|
|
|
|
|
<Target DependsOnTargets="Init" Name="RestorePackages">
|
|
|
|
|
|
|
|
<DotNetRestore WorkingDirectory="$(RepoRoot)/src" ToolPath="$(DotNetPath)" />
|
|
|
|
<DotNetRestore WorkingDirectory="$(RepoRoot)/tools" ToolPath="$(DotNetPath)" />
|
2016-06-28 23:59:15 +00:00
|
|
|
|
2016-06-28 23:19:42 +00:00
|
|
|
</Target>
|
|
|
|
|
2016-06-28 02:09:30 +00:00
|
|
|
</Project>
|