2016-08-30 18:45:58 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
2017-03-03 19:13:41 +00:00
|
|
|
<Target Name="SetupDebProps"
|
|
|
|
DependsOnTargets="Init">
|
|
|
|
<PropertyGroup>
|
2017-06-05 17:48:12 +00:00
|
|
|
<SdkDebianPackageName>dotnet-sdk-$(SdkVersion)</SdkDebianPackageName>
|
2017-03-03 19:13:41 +00:00
|
|
|
</PropertyGroup>
|
2017-02-23 21:30:04 +00:00
|
|
|
|
2017-03-03 19:13:41 +00:00
|
|
|
<!-- dotnet deb-tool -->
|
|
|
|
<PropertyGroup>
|
|
|
|
<DotnetDebToolConsumerProjectName>dotnet-deb-tool-consumer.csproj</DotnetDebToolConsumerProjectName>
|
|
|
|
<DotnetDebToolDir>$(IntermediateDirectory)/$(DotnetDebToolConsumerProjectName)</DotnetDebToolDir>
|
2017-05-31 22:10:12 +00:00
|
|
|
<PackageTool>$(NuGetPackagesDir)/dotnet-deb-tool/$(DotnetDebToolVersion)/lib/netcoreapp2.0/tool/package_tool</PackageTool>
|
2017-03-03 19:13:41 +00:00
|
|
|
</PropertyGroup>
|
2017-02-23 21:30:04 +00:00
|
|
|
|
2017-03-03 19:13:41 +00:00
|
|
|
<!-- constants -->
|
|
|
|
<PropertyGroup>
|
|
|
|
<DebianInstalledDirectory>/usr/share/dotnet</DebianInstalledDirectory>
|
2017-02-23 21:30:04 +00:00
|
|
|
|
2017-03-03 19:13:41 +00:00
|
|
|
<LayoutPackageRootDirName>package_root</LayoutPackageRootDirName>
|
|
|
|
<LayoutAbsolutePlacementDirName>$</LayoutAbsolutePlacementDirName>
|
|
|
|
<LayoutSamplesDirName>samples</LayoutSamplesDirName>
|
|
|
|
<LayoutDocsDirName>docs</LayoutDocsDirName>
|
|
|
|
<LayoutDebianFilesDirName>debian</LayoutDebianFilesDirName>
|
|
|
|
</PropertyGroup>
|
2017-02-23 21:30:04 +00:00
|
|
|
|
2017-03-03 19:13:41 +00:00
|
|
|
<!-- Package Identities -->
|
|
|
|
<PropertyGroup>
|
|
|
|
<SdkDebianPackageVersion>$(SdkVersion)</SdkDebianPackageVersion>
|
2017-06-05 17:48:12 +00:00
|
|
|
<SdkDebianPackageName>dotnet-sdk-$(SdkDebianPackageVersion)</SdkDebianPackageName>
|
2017-03-03 19:13:41 +00:00
|
|
|
<SharedFxDebianPackageVersion>$(SharedFrameworkVersion)</SharedFxDebianPackageVersion>
|
2017-06-02 16:05:57 +00:00
|
|
|
<SharedFxDebianPackageName>dotnet-runtime-$(SharedFxDebianPackageVersion)</SharedFxDebianPackageName>
|
2017-03-03 19:13:41 +00:00
|
|
|
<SharedFxDebianPackageName>$(SharedFxDebianPackageName.ToLower())</SharedFxDebianPackageName>
|
|
|
|
<HostFxrDebianPackageVersion>$(HostFxrVersion)</HostFxrDebianPackageVersion>
|
2017-06-02 16:05:57 +00:00
|
|
|
<HostFxrDebianPackageName>dotnet-hostfxr-$(HostFxrDebianPackageVersion)</HostFxrDebianPackageName>
|
2017-03-03 19:13:41 +00:00
|
|
|
<HostFxrDebianPackageName>$(HostFxrDebianPackageName.ToLower())</HostFxrDebianPackageName>
|
|
|
|
<HostDebianPackageName>dotnet-host</HostDebianPackageName>
|
2017-07-13 19:07:51 +00:00
|
|
|
<AspNetCoreRuntimePackageName>$(AspNetCoreRuntimePackageBrandName)-$(AspNetCoreVersionAndRelease)-$(AspNetCoreCoherenceTimestamp)</AspNetCoreRuntimePackageName>
|
|
|
|
<HostRidInAspNetCoreRuntimeDebInstallerFileName>$(HostRid)</HostRidInAspNetCoreRuntimeDebInstallerFileName>
|
|
|
|
<HostRidInAspNetCoreRuntimeDebInstallerFileName Condition=" '$(HostRid)' == 'debian.8-x64' ">debian-x64</HostRidInAspNetCoreRuntimeDebInstallerFileName>
|
|
|
|
<AspNetCoreRuntimeDebInstallerFileName>$(AspNetCoreRuntimePackageBrandName)-$(AspNetCoreVersionAndRelease)-$(AspNetCoreCoherenceTimestamp)-$(HostRidInAspNetCoreRuntimeDebInstallerFileName).deb</AspNetCoreRuntimeDebInstallerFileName>
|
2017-03-03 19:13:41 +00:00
|
|
|
</PropertyGroup>
|
2017-02-23 21:30:04 +00:00
|
|
|
|
2017-03-03 19:13:41 +00:00
|
|
|
<!-- Inputs -->
|
|
|
|
<PropertyGroup>
|
|
|
|
<ManpagesDirectory>$(RepoRoot)/Documentation/manpages</ManpagesDirectory>
|
|
|
|
<EndToEndTestProject>$(RepoRoot)/test/EndToEnd/EndToEnd.csproj</EndToEndTestProject>
|
|
|
|
<CLISdkRoot>$(OutputDirectory)/sdk</CLISdkRoot>
|
|
|
|
</PropertyGroup>
|
2016-08-30 18:45:58 +00:00
|
|
|
|
|
|
|
<ItemGroup>
|
|
|
|
<CLISdkFiles Include="$(CLISdkRoot)/**/*" />
|
|
|
|
<SdkDebManPageFiles Include="$(ManpagesDirectory)/**/*" />
|
|
|
|
</ItemGroup>
|
|
|
|
|
2017-03-03 19:13:41 +00:00
|
|
|
<!-- Output Directories -->
|
|
|
|
<PropertyGroup>
|
|
|
|
<InstallerOutputDirectory>$(PackagesDirectory)</InstallerOutputDirectory>
|
2017-06-02 15:58:06 +00:00
|
|
|
<SdkInstallerFile>$(InstallerOutputDirectory)/$(DistroSpecificArtifactNameWithVersionCombinedHostHostFxrFrameworkSdk)$(InstallerExtension)</SdkInstallerFile>
|
2017-03-03 19:13:41 +00:00
|
|
|
<SdkDebianIntermediateDirectory>$(IntermediateDirectory)/debian/sdk</SdkDebianIntermediateDirectory>
|
|
|
|
<DotNetDebToolOutputDirectory>$(SdkDebianIntermediateDirectory)/deb-tool-output</DotNetDebToolOutputDirectory>
|
|
|
|
<DebianTestResultsXmlFile>$(SdkDebianIntermediateDirectory)/debian-testResults.xml</DebianTestResultsXmlFile>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<!-- Layout Directories -->
|
|
|
|
<PropertyGroup>
|
|
|
|
<LayoutDirectory>$(SdkDebianIntermediateDirectory)/debianLayoutDirectory</LayoutDirectory>
|
|
|
|
<LayoutPackageRootDir>$(LayoutDirectory)/$(LayoutPackageRootDirName)</LayoutPackageRootDir>
|
|
|
|
<LayoutAbsolutePlacementDir>$(LayoutDirectory)/$(LayoutAbsolutePlacementDirName)</LayoutAbsolutePlacementDir>
|
|
|
|
<LayoutSamplesDir>$(LayoutDirectory)/$(LayoutSamplesDirName)</LayoutSamplesDir>
|
|
|
|
<LayoutDocsDir>$(LayoutDirectory)/$(LayoutDocsDirName)</LayoutDocsDir>
|
|
|
|
<LayoutDebianFilesDir>$(LayoutDirectory)/$(LayoutDebianFilesDirName)</LayoutDebianFilesDir>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<!-- debian_config.json -->
|
|
|
|
<PropertyGroup>
|
|
|
|
<DebianConfigTemplateFile>$(RepoRoot)/packaging/deb/dotnet-debian_config.json</DebianConfigTemplateFile>
|
|
|
|
<DebianConfigJsonFile>$(LayoutDirectory)/debian_config.json</DebianConfigJsonFile>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
2017-04-26 19:12:25 +00:00
|
|
|
<PropertyGroup>
|
|
|
|
<DebianPostinstTemplateFile>$(RepoRoot)/packaging/deb/postinst</DebianPostinstTemplateFile>
|
|
|
|
<DebianPostinstFile>$(LayoutDirectory)/debian/postinst</DebianPostinstFile>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
2016-08-30 18:45:58 +00:00
|
|
|
<ItemGroup>
|
|
|
|
<DebianConfigTokenValues Include="%SHARED_FRAMEWORK_DEBIAN_PACKAGE_NAME%">
|
|
|
|
<ReplacementString>$(SharedFxDebianPackageName)</ReplacementString>
|
|
|
|
</DebianConfigTokenValues>
|
2017-07-13 19:07:51 +00:00
|
|
|
<DebianConfigTokenValues Include="%ASPNETCOREPACKAGESTORE_DEBIAN_PACKAGE_NAME%">
|
|
|
|
<ReplacementString>$(AspNetCoreRuntimePackageName)</ReplacementString>
|
|
|
|
</DebianConfigTokenValues>
|
2017-03-03 19:13:41 +00:00
|
|
|
<DebianConfigTokenValues Include="%SHARED_FRAMEWORK_DEBIAN_PACKAGE_ADDITIONAL_DEPENDENCY%"
|
|
|
|
Condition="'$(IncludeAdditionalSharedFrameworks)' == 'true'">
|
|
|
|
<ReplacementString>,
|
|
|
|
"$(AdditionalSharedFxDebianPackageName)" : {}</ReplacementString>
|
|
|
|
</DebianConfigTokenValues>
|
|
|
|
<DebianConfigTokenValues Include="%SHARED_FRAMEWORK_DEBIAN_PACKAGE_ADDITIONAL_DEPENDENCY%"
|
|
|
|
Condition="'$(IncludeAdditionalSharedFrameworks)' != 'true'">
|
|
|
|
<ReplacementString></ReplacementString>
|
2016-08-30 18:45:58 +00:00
|
|
|
</DebianConfigTokenValues>
|
|
|
|
<DebianConfigTokenValues Include="%SDK_NUGET_VERSION%">
|
|
|
|
<ReplacementString>$(SdkVersion)</ReplacementString>
|
|
|
|
</DebianConfigTokenValues>
|
|
|
|
<DebianConfigTokenValues Include="%CLI_SDK_BRAND_NAME%">
|
|
|
|
<ReplacementString>$(SdkBrandName)</ReplacementString>
|
|
|
|
</DebianConfigTokenValues>
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
<ItemGroup>
|
|
|
|
<TestSdkDebTaskEnvironmentVariables Include="PATH=$(DebianInstalledDirectory)$(PathListSeparator)$(PATH)" />
|
2017-02-28 18:16:52 +00:00
|
|
|
|
|
|
|
<!-- Consumed By Publish -->
|
|
|
|
<GeneratedInstallers Include="$(SdkInstallerFile)" />
|
2016-08-30 18:45:58 +00:00
|
|
|
</ItemGroup>
|
|
|
|
</Target>
|
2017-07-13 19:07:51 +00:00
|
|
|
|
|
|
|
<Target Name="DownloadAspNetCoreRuntimeDebInstaller"
|
|
|
|
DependsOnTargets="SetupDebProps">
|
|
|
|
<PropertyGroup>
|
|
|
|
<DownloadedSharedAspNetCoreRuntime>$(PackagesDirectory)/$(AspNetCoreRuntimeDebInstallerFileName)</DownloadedSharedAspNetCoreRuntime>
|
|
|
|
</PropertyGroup>
|
|
|
|
<DownloadFile
|
|
|
|
Uri="$(AspNetCoreRuntimeInstallerBlobRootUrl)/$(AspNetCoreRuntimeDebInstallerFileName)"
|
|
|
|
DestinationPath="$(DownloadedSharedAspNetCoreRuntime)"/>
|
|
|
|
</Target>
|
2016-08-30 18:45:58 +00:00
|
|
|
</Project>
|