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">
|
|
|
|
<Target Name="SetupDebProps"
|
|
|
|
DependsOnTargets="Init">
|
|
|
|
<!-- dotnet deb-tool -->
|
|
|
|
<PropertyGroup>
|
|
|
|
<DotnetDebToolPackageId>dotnet-deb-tool</DotnetDebToolPackageId>
|
|
|
|
<DotnetDebToolVersion Condition=" '$(DotnetDebToolVersion)' == '' ">1.0.0-*</DotnetDebToolVersion>
|
|
|
|
<DotnetDebToolConsumerProjectName>dotnet-deb-tool-consumer</DotnetDebToolConsumerProjectName>
|
|
|
|
<DotnetDebToolDir>$(IntermediateDirectory)/$(DotnetDebToolConsumerProjectName)</DotnetDebToolDir>
|
|
|
|
<DotnetDebToolPackageSource Condition=" '$(DotnetDebToolPackageSource)' == '' "></DotnetDebToolPackageSource>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<ItemGroup>
|
|
|
|
<DotnetDebToolProjectJsonLines Include="{" />
|
|
|
|
<DotnetDebToolProjectJsonLines Include="%20%20%20%20"version": "1.0.0-*"," />
|
|
|
|
<DotnetDebToolProjectJsonLines Include="%20%20%20%20"name": "$(DotnetDebToolConsumerProjectName)"," />
|
|
|
|
<DotnetDebToolProjectJsonLines Include="%20%20%20%20"frameworks": { "netcoreapp1.0": {} }," />
|
|
|
|
<DotnetDebToolProjectJsonLines Include="%20%20%20%20"tools": {"$(DotnetDebToolPackageId)": "$(DotnetDebToolVersion)" }" />
|
|
|
|
<DotnetDebToolProjectJsonLines Include="}" />
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
<!-- constants -->
|
|
|
|
<PropertyGroup>
|
|
|
|
<DebianInstalledDirectory>/usr/share/dotnet</DebianInstalledDirectory>
|
|
|
|
|
|
|
|
<LayoutPackageRootDirName>package_root</LayoutPackageRootDirName>
|
|
|
|
<LayoutAbsolutePlacementDirName>$</LayoutAbsolutePlacementDirName>
|
|
|
|
<LayoutSamplesDirName>samples</LayoutSamplesDirName>
|
|
|
|
<LayoutDocsDirName>docs</LayoutDocsDirName>
|
|
|
|
<LayoutDebianFilesDirName>debian</LayoutDebianFilesDirName>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<!-- Package Identities -->
|
|
|
|
<PropertyGroup>
|
|
|
|
<SdkDebianPackageVersion>$(SdkVersion)</SdkDebianPackageVersion>
|
|
|
|
<SdkDebianPackageName>dotnet-dev-$(SdkDebianPackageVersion)</SdkDebianPackageName>
|
|
|
|
<SharedFxDebianPackageVersion>$(SharedFrameworkVersion)</SharedFxDebianPackageVersion>
|
|
|
|
<SharedFxDebianPackageName>dotnet-sharedframework-$(SharedFrameworkName)-$(SharedFxDebianPackageVersion)</SharedFxDebianPackageName>
|
|
|
|
<SharedFxDebianPackageName>$(SharedFxDebianPackageName.ToLower())</SharedFxDebianPackageName>
|
|
|
|
<HostFxrDebianPackageVersion>$(HostFxrVersion)</HostFxrDebianPackageVersion>
|
|
|
|
<HostFxrDebianPackageName>dotnet-hostfxr-$(HostFxrDebianPackageVersion)</HostFxrDebianPackageName>
|
|
|
|
<HostFxrDebianPackageName>$(HostFxrDebianPackageName.ToLower())</HostFxrDebianPackageName>
|
|
|
|
<HostDebianPackageName>dotnet-host</HostDebianPackageName>
|
2017-01-06 00:06:16 +00:00
|
|
|
|
|
|
|
<AdditionalSharedFxDebianPackageVersion>$(AdditionalSharedFrameworkVersion)</AdditionalSharedFxDebianPackageVersion>
|
|
|
|
<AdditionalSharedFxDebianPackageName>dotnet-sharedframework-$(SharedFrameworkName)-$(AdditionalSharedFxDebianPackageVersion)</AdditionalSharedFxDebianPackageName>
|
|
|
|
<AdditionalSharedFxDebianPackageName>$(AdditionalSharedFxDebianPackageName.ToLower())</AdditionalSharedFxDebianPackageName>
|
|
|
|
<AdditionalHostFxrDebianPackageVersion>$(AdditionalHostFxrVersion)</AdditionalHostFxrDebianPackageVersion>
|
|
|
|
<AdditionalHostFxrDebianPackageName>dotnet-hostfxr-$(AdditionalHostFxrDebianPackageVersion)</AdditionalHostFxrDebianPackageName>
|
|
|
|
<AdditionalHostFxrDebianPackageName>$(AdditionalHostFxrDebianPackageName.ToLower())</AdditionalHostFxrDebianPackageName>
|
2016-08-30 18:45:58 +00:00
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<!-- Inputs -->
|
|
|
|
<PropertyGroup>
|
|
|
|
<ManpagesDirectory>$(RepoRoot)/Documentation/manpages</ManpagesDirectory>
|
2016-11-12 07:46:29 +00:00
|
|
|
<EndToEndTestProject>$(RepoRoot)/test/EndToEnd/EndToEnd.csproj</EndToEndTestProject>
|
2016-08-30 18:45:58 +00:00
|
|
|
<CLISdkRoot>$(Stage2Directory)/sdk</CLISdkRoot>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<ItemGroup>
|
|
|
|
<CLISdkFiles Include="$(CLISdkRoot)/**/*" />
|
|
|
|
<SdkDebManPageFiles Include="$(ManpagesDirectory)/**/*" />
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
<!-- Output Directories -->
|
|
|
|
<PropertyGroup>
|
|
|
|
<InstallerOutputDirectory>$(PackagesDirectory)</InstallerOutputDirectory>
|
|
|
|
<SdkInstallerFile>$(InstallerOutputDirectory)/$(ArtifactNameWithVersionSdk)$(InstallerExtension)</SdkInstallerFile>
|
|
|
|
|
|
|
|
<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>
|
|
|
|
|
|
|
|
<ItemGroup>
|
|
|
|
<DebianConfigTokenValues Include="%SHARED_FRAMEWORK_DEBIAN_PACKAGE_NAME%">
|
|
|
|
<ReplacementString>$(SharedFxDebianPackageName)</ReplacementString>
|
|
|
|
</DebianConfigTokenValues>
|
2017-01-06 03:05:06 +00:00
|
|
|
<DebianConfigTokenValues Include="%SHARED_FRAMEWORK_DEBIAN_PACKAGE_NAME_ADDITIONAL%">
|
2017-01-06 00:06:16 +00:00
|
|
|
<ReplacementString>$(AdditionalSharedFxDebianPackageName)</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)" />
|
|
|
|
|
|
|
|
<!-- Consumed By Publish -->
|
|
|
|
<GeneratedInstallers Include="$(SdkInstallerFile)" />
|
|
|
|
</ItemGroup>
|
|
|
|
</Target>
|
|
|
|
</Project>
|