diff --git a/build/Microsoft.DotNet.Cli.Package.targets b/build/Microsoft.DotNet.Cli.Package.targets
index 0ca7a1758..8af7c7d03 100644
--- a/build/Microsoft.DotNet.Cli.Package.targets
+++ b/build/Microsoft.DotNet.Cli.Package.targets
@@ -3,13 +3,34 @@
-
+
+
+
+
+
-
+
+
-
-
-
-
-
-
-
-
-
-
- false
- true
-
-
-
-
-
- $(RepoRoot)/scripts/package/package-debian.sh
- $(RepoRoot)/Documentation/manpages
-
- $(PackagesDirectory)
- $(InstallerOutputDirectory)/$(ArtifactNameWithVersionSdk)$(InstallerExtension)
-
- dotnet-dev-$(SdkVersion)
- dotnet-sharedframework-$(SharedFrameworkName)-$(SharedFrameworkVersion)
- $(SharedFrameworkDebianPackageName.ToLower())
- dotnet-hostfxr-$(HostFxrVersion)
- $(HostFxrDebianPackageName.ToLower())
- dotnet-host
-
- $(IntermediateDirectory)/debian/sdk
-
- $(SdkDebianIntermediateDirectory)/debian-testResults.xml
- /usr/share/dotnet
- $(RepoRoot)/test/EndToEnd
-
- $(SdkDebianLayoutOutputDirectory)/$(DotnetDebToolConfigJsonFileName)
-
-
-
-
-
-
- $(SharedFrameworkDebianPackageName)
-
-
- $(SharedFrameworkName)
-
-
- $(SharedFrameworkVersion)
-
-
- $(SharedFrameworkBrandName)
-
-
- $(SdkVersion)
-
-
- $(SdkBrandName)
-
-
-
-
-
-
-
-
-
+ Condition=" '$(OSName)' == 'ubuntu' " />
- $(SdkDebianLayoutOutputDirectory)/$(DebLayoutPackageRootDirName)
+ $(SdkDebianLayoutOutputDirectory)/$(DebLayoutPackageRootDirName)
$(SdkDebianLayoutOutputDirectory)/$(DebLayoutAbsolutePlacementDirName)
$(SdkDebianLayoutOutputDirectory)/$(DebLayoutSamplesDirName)
$(SdkDebianLayoutOutputDirectory)/$(DebLayoutDocsDirName)
@@ -210,7 +141,22 @@
DestinationFile="$(DotnetDebToolConfigJsonFilePath)"
ReplacementPatterns="@(SdkDebianPackageTemplateReplacement -> '%(Identity)')"
ReplacementStrings="@(SdkDebianPackageTemplateReplacement -> '%(ReplacementString)')" />
+
+
+
+
+
+
+
+ false
+ true
+
+
+
+
diff --git a/build/package/Microsoft.DotNet.Cli.Installer.DEB.props b/build/package/Microsoft.DotNet.Cli.Installer.DEB.props
index 2431676c6..cfd4da179 100644
--- a/build/package/Microsoft.DotNet.Cli.Installer.DEB.props
+++ b/build/package/Microsoft.DotNet.Cli.Installer.DEB.props
@@ -1,20 +1,15 @@
+
- dotnet-deb-tool
- 1.0.0-*
+ dotnet-deb-tool
+ 1.0.0-*
dotnet-deb-tool-consumer
- debian_config.json
-
- package_root
- $
- samples
- docs
- debian
-
+ $(IntermediateDirectory)/$(DotnetDebToolConsumerProjectName)
+
+
-
@@ -22,4 +17,84 @@
+
+
+
+ /usr/share/dotnet
+
+ package_root
+ $
+ samples
+ docs
+ debian
+
+
+
+
+ $(SdkVersion)
+ dotnet-dev-$(SdkDebianPackageVersion)
+ $(SharedFrameworkVersion)
+ dotnet-sharedframework-$(SharedFrameworkName)-$(SharedFrameworkDebianPackageVersion)
+ $(SharedFrameworkDebianPackageName.ToLower())
+ $(HostFxrVersion)
+ dotnet-hostfxr-$(HostFxrDebianPackageVersion)
+ $(HostFxrDebianPackageName.ToLower())
+ dotnet-host
+
+
+
+
+ $(RepoRoot)/Documentation/manpages
+ $(RepoRoot)/test/EndToEnd
+
+
+
+
+
+
+
+
+
+ $(PackagesDirectory)
+ $(InstallerOutputDirectory)/$(ArtifactNameWithVersionSdk)$(InstallerExtension)
+
+ $(IntermediateDirectory)/debian/sdk
+ $(SdkDebianIntermediateDirectory)/debian-testResults.xml
+
+
+
+
+ dotnet-debian_config.json
+ $(RepoRoot)/packaging/deb/$(DebianConfigTemplateFileName)
+ debian_config.json
+ $(SdkDebianLayoutOutputDirectory)/$(DebianConfigJsonFileName)
+
+
+
+
+ $(SharedFrameworkDebianPackageName)
+
+
+ $(SharedFrameworkName)
+
+
+ $(SharedFrameworkVersion)
+
+
+ $(SharedFrameworkBrandName)
+
+
+ $(SdkVersion)
+
+
+ $(SdkBrandName)
+
+
+
+
+
+
+
+
+
diff --git a/build_projects/dotnet-cli-build/DotNetDebTool.cs b/build_projects/dotnet-cli-build/DotNetDebTool.cs
index 5946d2c97..77f05b19d 100644
--- a/build_projects/dotnet-cli-build/DotNetDebTool.cs
+++ b/build_projects/dotnet-cli-build/DotNetDebTool.cs
@@ -1,6 +1,9 @@
// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+using Microsoft.Build.Framework;
+using Microsoft.Build.Utilities;
+
namespace Microsoft.DotNet.Cli.Build
{
public class DotNetDebTool : DotNetTool