diff --git a/Documentation/dotnet-test-protocol.md b/Documentation/dotnet-test-protocol.md
index 14c96dee0..50af88a51 100644
--- a/Documentation/dotnet-test-protocol.md
+++ b/Documentation/dotnet-test-protocol.md
@@ -23,7 +23,7 @@ All messages have the format described here:
The payload formats for each message is described in links to the classes used to serialize/deseralize the information in the description of the protocol.
#### Test Execution
-![alt tag](../../../images/DotnetTestExecuteTests.png)
+![alt tag](./images/DotnetTestExecuteTests.png)
1. After the optional version check, the adapter sends a TestExecution.GetTestRunnerProcessStartInfo, with the
[tests](https://github.com/dotnet/cli/blob/rel/1.0.0/src/Microsoft.Extensions.Testing.Abstractions/Messages/RunTestsMessage.cs) it wants to execute inside of it. Dotnet test sends back a FileName and Arguments inside a [TestStartInfo](https://github.com/dotnet/cli/blob/rel/1.0.0/src/dotnet/commands/dotnet-test/TestStartInfo.cs) payload that the adapter can use to start the runner. In the past, we would send the list of tests to run as part of that argument, but we were actually going over the command line size limit for some test projects.
@@ -36,7 +36,7 @@ The payload formats for each message is described in links to the classes used t
7. Once the adapter is done, it sends dotnet test a TestSession.Terminate which will cause dotnet test to shutdown.
#### Test discovery
-![alt tag](../../../images/DotnetTestDiscoverTests.png)
+![alt tag](./images/DotnetTestDiscoverTests.png)
1. After the optional version check, the adapter sends a TestDiscovery.Start message. Because in this case, the adapter does not need to attach to the process, dotnet test will start the runner itself. Also, since there is no long list of arguments to be passed to the runner, no --wait-command flag is needed to be passed to the runner. dotnet test only passes a --list argument to the runner, which means the runner should not run the tests, just list them.
2. The runner then sends dotnet test (and it passes forward to the adapter) a TestDiscovery.TestFound for each [test](https://github.com/dotnet/cli/blob/rel/1.0.0/src/Microsoft.Extensions.Testing.Abstractions/Test.cs) found.
diff --git a/Microsoft.DotNet.Cli.sln b/Microsoft.DotNet.Cli.sln
index 319430b98..b4769861a 100644
--- a/Microsoft.DotNet.Cli.sln
+++ b/Microsoft.DotNet.Cli.sln
@@ -84,6 +84,8 @@ Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "dotnet-dependency-tool-invo
EndProject
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.DotNet.Compiler.Common.Tests", "test\Microsoft.DotNet.Compiler.Common.Tests\Microsoft.DotNet.Compiler.Common.Tests.xproj", "{44E7D1AC-DCF1-4A18-9C22-F09E6BB302B5}"
EndProject
+Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "dotnet-nuget.UnitTests", "test\dotnet-nuget.UnitTests\dotnet-nuget.UnitTests.xproj", "{2EC08501-CFC6-412F-9345-8D31D258A60E}"
+EndProject
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "dotnet-pack.Tests", "test\dotnet-pack.Tests\dotnet-pack.Tests.xproj", "{5FDA6D37-3A3E-4333-BA5C-F0B28BE316F4}"
EndProject
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "dotnet-run.Tests", "test\dotnet-run.Tests\dotnet-run.Tests.xproj", "{35E3C2DC-9B38-4EC5-8DD7-C32458DC485F}"
@@ -110,6 +112,8 @@ Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.DotNet.Configurer
EndProject
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.DotNet.Archive", "src\Microsoft.DotNet.Archive\Microsoft.DotNet.Archive.xproj", "{35B19F22-B8C0-4849-9C35-3F809B7588B8}"
EndProject
+Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "dotnet-new.Tests", "test\dotnet-new.Tests\dotnet-new.Tests.xproj", "{712A4AFF-D758-49B0-AB46-B6DD2FFC9D26}"
+EndProject
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "dotnet-build3.Tests", "test\dotnet-build3.Tests\dotnet-build3.Tests.xproj", "{49D7318E-D198-4E2B-BBEA-3A24D805F88D}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{89905EC4-BC0F-443B-8ADF-691321F10108}"
@@ -620,6 +624,22 @@ Global
{44E7D1AC-DCF1-4A18-9C22-F09E6BB302B5}.RelWithDebInfo|Any CPU.Build.0 = Release|Any CPU
{44E7D1AC-DCF1-4A18-9C22-F09E6BB302B5}.RelWithDebInfo|x64.ActiveCfg = Release|Any CPU
{44E7D1AC-DCF1-4A18-9C22-F09E6BB302B5}.RelWithDebInfo|x64.Build.0 = Release|Any CPU
+ {2EC08501-CFC6-412F-9345-8D31D258A60E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {2EC08501-CFC6-412F-9345-8D31D258A60E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {2EC08501-CFC6-412F-9345-8D31D258A60E}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {2EC08501-CFC6-412F-9345-8D31D258A60E}.Debug|x64.Build.0 = Debug|Any CPU
+ {2EC08501-CFC6-412F-9345-8D31D258A60E}.MinSizeRel|Any CPU.ActiveCfg = Debug|Any CPU
+ {2EC08501-CFC6-412F-9345-8D31D258A60E}.MinSizeRel|Any CPU.Build.0 = Debug|Any CPU
+ {2EC08501-CFC6-412F-9345-8D31D258A60E}.MinSizeRel|x64.ActiveCfg = Debug|Any CPU
+ {2EC08501-CFC6-412F-9345-8D31D258A60E}.MinSizeRel|x64.Build.0 = Debug|Any CPU
+ {2EC08501-CFC6-412F-9345-8D31D258A60E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {2EC08501-CFC6-412F-9345-8D31D258A60E}.Release|Any CPU.Build.0 = Release|Any CPU
+ {2EC08501-CFC6-412F-9345-8D31D258A60E}.Release|x64.ActiveCfg = Release|Any CPU
+ {2EC08501-CFC6-412F-9345-8D31D258A60E}.Release|x64.Build.0 = Release|Any CPU
+ {2EC08501-CFC6-412F-9345-8D31D258A60E}.RelWithDebInfo|Any CPU.ActiveCfg = Release|Any CPU
+ {2EC08501-CFC6-412F-9345-8D31D258A60E}.RelWithDebInfo|Any CPU.Build.0 = Release|Any CPU
+ {2EC08501-CFC6-412F-9345-8D31D258A60E}.RelWithDebInfo|x64.ActiveCfg = Release|Any CPU
+ {2EC08501-CFC6-412F-9345-8D31D258A60E}.RelWithDebInfo|x64.Build.0 = Release|Any CPU
{5FDA6D37-3A3E-4333-BA5C-F0B28BE316F4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5FDA6D37-3A3E-4333-BA5C-F0B28BE316F4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5FDA6D37-3A3E-4333-BA5C-F0B28BE316F4}.Debug|x64.ActiveCfg = Debug|Any CPU
@@ -828,6 +848,22 @@ Global
{35B19F22-B8C0-4849-9C35-3F809B7588B8}.RelWithDebInfo|Any CPU.Build.0 = Release|Any CPU
{35B19F22-B8C0-4849-9C35-3F809B7588B8}.RelWithDebInfo|x64.ActiveCfg = Release|Any CPU
{35B19F22-B8C0-4849-9C35-3F809B7588B8}.RelWithDebInfo|x64.Build.0 = Release|Any CPU
+ {712A4AFF-D758-49B0-AB46-B6DD2FFC9D26}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {712A4AFF-D758-49B0-AB46-B6DD2FFC9D26}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {712A4AFF-D758-49B0-AB46-B6DD2FFC9D26}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {712A4AFF-D758-49B0-AB46-B6DD2FFC9D26}.Debug|x64.Build.0 = Debug|Any CPU
+ {712A4AFF-D758-49B0-AB46-B6DD2FFC9D26}.MinSizeRel|Any CPU.ActiveCfg = Debug|Any CPU
+ {712A4AFF-D758-49B0-AB46-B6DD2FFC9D26}.MinSizeRel|Any CPU.Build.0 = Debug|Any CPU
+ {712A4AFF-D758-49B0-AB46-B6DD2FFC9D26}.MinSizeRel|x64.ActiveCfg = Debug|Any CPU
+ {712A4AFF-D758-49B0-AB46-B6DD2FFC9D26}.MinSizeRel|x64.Build.0 = Debug|Any CPU
+ {712A4AFF-D758-49B0-AB46-B6DD2FFC9D26}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {712A4AFF-D758-49B0-AB46-B6DD2FFC9D26}.Release|Any CPU.Build.0 = Release|Any CPU
+ {712A4AFF-D758-49B0-AB46-B6DD2FFC9D26}.Release|x64.ActiveCfg = Release|Any CPU
+ {712A4AFF-D758-49B0-AB46-B6DD2FFC9D26}.Release|x64.Build.0 = Release|Any CPU
+ {712A4AFF-D758-49B0-AB46-B6DD2FFC9D26}.RelWithDebInfo|Any CPU.ActiveCfg = Release|Any CPU
+ {712A4AFF-D758-49B0-AB46-B6DD2FFC9D26}.RelWithDebInfo|Any CPU.Build.0 = Release|Any CPU
+ {712A4AFF-D758-49B0-AB46-B6DD2FFC9D26}.RelWithDebInfo|x64.ActiveCfg = Release|Any CPU
+ {712A4AFF-D758-49B0-AB46-B6DD2FFC9D26}.RelWithDebInfo|x64.Build.0 = Release|Any CPU
{49D7318E-D198-4E2B-BBEA-3A24D805F88D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{49D7318E-D198-4E2B-BBEA-3A24D805F88D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{49D7318E-D198-4E2B-BBEA-3A24D805F88D}.Debug|x64.ActiveCfg = Debug|Any CPU
@@ -963,6 +999,7 @@ Global
{1AB5B24B-B317-4142-A5D1-A6E84F15BA34} = {ADA7052B-884B-4776-8B8D-D04191D0AA70}
{C26A48BB-193F-450C-AB09-4D3324C78188} = {1AB5B24B-B317-4142-A5D1-A6E84F15BA34}
{44E7D1AC-DCF1-4A18-9C22-F09E6BB302B5} = {17735A9D-BFD9-4585-A7CB-3208CA6EA8A7}
+ {2EC08501-CFC6-412F-9345-8D31D258A60E} = {17735A9D-BFD9-4585-A7CB-3208CA6EA8A7}
{5FDA6D37-3A3E-4333-BA5C-F0B28BE316F4} = {17735A9D-BFD9-4585-A7CB-3208CA6EA8A7}
{35E3C2DC-9B38-4EC5-8DD7-C32458DC485F} = {17735A9D-BFD9-4585-A7CB-3208CA6EA8A7}
{6A3095FF-A7C5-4300-85A9-C025C384401D} = {17735A9D-BFD9-4585-A7CB-3208CA6EA8A7}
@@ -976,6 +1013,7 @@ Global
{E5ED47EF-BF25-4DA9-A7FE-290C642CBF0F} = {ED2FE3E2-F7E7-4389-8231-B65123F2076F}
{4C3B06D5-B6D5-4E5B-A44F-3EBE52A1C759} = {17735A9D-BFD9-4585-A7CB-3208CA6EA8A7}
{35B19F22-B8C0-4849-9C35-3F809B7588B8} = {ED2FE3E2-F7E7-4389-8231-B65123F2076F}
+ {712A4AFF-D758-49B0-AB46-B6DD2FFC9D26} = {17735A9D-BFD9-4585-A7CB-3208CA6EA8A7}
{49D7318E-D198-4E2B-BBEA-3A24D805F88D} = {17735A9D-BFD9-4585-A7CB-3208CA6EA8A7}
{FD7D515A-D10F-4F49-B8AE-21CF7ED071AE} = {89905EC4-BC0F-443B-8ADF-691321F10108}
{8E3354BD-827F-41B7-9EE6-6BE1F1EDD8E9} = {89905EC4-BC0F-443B-8ADF-691321F10108}
diff --git a/build/Microsoft.DotNet.Cli.Package.targets b/build/Microsoft.DotNet.Cli.Package.targets
index 0ca7a1758..d930228db 100644
--- a/build/Microsoft.DotNet.Cli.Package.targets
+++ b/build/Microsoft.DotNet.Cli.Package.targets
@@ -3,7 +3,7 @@
-
+
diff --git a/build/package/Microsoft.DotNet.Cli.Installer.DEB.proj b/build/package/Microsoft.DotNet.Cli.Installer.DEB.proj
new file mode 100644
index 000000000..0c13f7029
--- /dev/null
+++ b/build/package/Microsoft.DotNet.Cli.Installer.DEB.proj
@@ -0,0 +1,174 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ true
+
+
+
+
+
+
diff --git a/build/package/Microsoft.DotNet.Cli.Installer.DEB.targets b/build/package/Microsoft.DotNet.Cli.Installer.DEB.targets
index 8dad18c11..c6b64a6d2 100644
--- a/build/package/Microsoft.DotNet.Cli.Installer.DEB.targets
+++ b/build/package/Microsoft.DotNet.Cli.Installer.DEB.targets
@@ -1,114 +1,113 @@
-
-
-
-
+
+
+
+ dotnet-deb-tool
+ 1.0.0-*
+ dotnet-deb-tool-consumer
+ $(IntermediateDirectory)/$(DotnetDebToolConsumerProjectName)
+
+
-
-
+
+
+
+
+
+
+
+
-
- false
- true
+
+
+ /usr/share/dotnet
- $(RepoRoot)/scripts/package/package-debian.sh
- $(RepoRoot)/Documentation/manpages
+ package_root
+ $
+ samples
+ docs
+ debian
+
- $(PackagesDirectory)
- $(InstallerOutputDirectory)/$(ArtifactNameWithVersionSdk)$(InstallerExtension)
+
+
+ $(SdkVersion)
+ dotnet-dev-$(SdkDebianPackageVersion)
+ $(SharedFrameworkVersion)
+ dotnet-sharedframework-$(SharedFrameworkName)-$(SharedFxDebianPackageVersion)
+ $(SharedFxDebianPackageName.ToLower())
+ $(HostFxrVersion)
+ dotnet-hostfxr-$(HostFxrDebianPackageVersion)
+ $(HostFxrDebianPackageName.ToLower())
+ dotnet-host
+
- dotnet-dev-$(SdkVersion)
- dotnet-sharedframework-$(SharedFrameworkName)-$(SharedFrameworkVersion)
- $(SharedFrameworkDebianPackageName.ToLower())
- dotnet-hostfxr-$(HostFxrVersion)
- $(HostFxrDebianPackageName.ToLower())
- dotnet-host
+
+
+ $(RepoRoot)/Documentation/manpages
+ $(RepoRoot)/test/EndToEnd
+ $(Stage2Directory)/sdk
+
- $(IntermediateDirectory)/debian/sdk
+
+
+
+
- $(SdkDebianIntermediateDirectory)/debian-testResults.xml
- /usr/share/dotnet
- $(RepoRoot)/test/EndToEnd
-
+
+
+ $(PackagesDirectory)
+ $(InstallerOutputDirectory)/$(ArtifactNameWithVersionSdk)$(InstallerExtension)
-
-
-
+ $(IntermediateDirectory)/debian/sdk
+ $(SdkDebianIntermediateDirectory)/deb-tool-output
+ $(SdkDebianIntermediateDirectory)/debian-testResults.xml
+
-
-
-
-
+
+
+ $(SdkDebianIntermediateDirectory)/debianLayoutDirectory
+ $(LayoutDirectory)/$(LayoutPackageRootDirName)
+ $(LayoutDirectory)/$(LayoutAbsolutePlacementDirName)
+ $(LayoutDirectory)/$(LayoutSamplesDirName)
+ $(LayoutDirectory)/$(LayoutDocsDirName)
+ $(LayoutDirectory)/$(LayoutDebianFilesDirName)
+
-
-
-
-
+
+
+ $(RepoRoot)/packaging/deb/dotnet-debian_config.json
+ $(LayoutDirectory)/debian_config.json
+
-
+
+
+ $(SharedFxDebianPackageName)
+
+
+ $(SharedFrameworkName)
+
+
+ $(SharedFrameworkVersion)
+
+
+ $(SharedFrameworkBrandName)
+
+
+ $(SdkVersion)
+
+
+ $(SdkBrandName)
+
+
-
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
diff --git a/build_projects/dotnet-cli-build/DotNetDebTool.cs b/build_projects/dotnet-cli-build/DotNetDebTool.cs
new file mode 100644
index 000000000..82036e60c
--- /dev/null
+++ b/build_projects/dotnet-cli-build/DotNetDebTool.cs
@@ -0,0 +1,53 @@
+// 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
+ {
+ protected override string Command
+ {
+ get { return "deb-tool"; }
+ }
+
+ protected override string Args
+ {
+ get { return $"{GetInputDir()} {GetOutputFile()} {GetPackageName()} {GetPackageVersion()}"; }
+ }
+
+ [Required]
+ public string InputDirectory { get; set; }
+
+ [Required]
+ public string OutputDirectory { get; set; }
+
+ [Required]
+ public string PackageName { get; set; }
+
+ [Required]
+ public string PackageVersion { get; set; }
+
+ private string GetInputDir()
+ {
+ return $"-i {InputDirectory}";
+ }
+
+ private string GetOutputFile()
+ {
+ return $"-o {OutputDirectory}";
+ }
+
+ private string GetPackageName()
+ {
+ return $"-n {PackageName}";
+ }
+
+ private string GetPackageVersion()
+ {
+ return $"-v {PackageVersion}";
+ }
+ }
+}
diff --git a/packaging/debian/dotnet-debian_config.json b/packaging/deb/dotnet-debian_config.json
similarity index 100%
rename from packaging/debian/dotnet-debian_config.json
rename to packaging/deb/dotnet-debian_config.json
diff --git a/packaging/debian/postinst b/packaging/deb/postinst
old mode 100755
new mode 100644
similarity index 100%
rename from packaging/debian/postinst
rename to packaging/deb/postinst
diff --git a/scripts/obtain/dotnet-install.ps1 b/scripts/obtain/dotnet-install.ps1
index 448b7d502..3351ac652 100644
--- a/scripts/obtain/dotnet-install.ps1
+++ b/scripts/obtain/dotnet-install.ps1
@@ -116,6 +116,46 @@ function Get-Version-Info-From-Version-Text([string]$VersionText) {
return $VersionInfo
}
+function Load-Assembly([string] $Assembly) {
+ try {
+ Add-Type -Assembly $Assembly | Out-Null
+ }
+ catch {
+ # On Nano Server, Powershell Core Edition is used. Add-Type is unable to resolve base class assemblies because they are not GAC'd.
+ # Loading the base class assemblies is not unnecessary as the types will automatically get resolved.
+ }
+}
+
+function GetHTTPResponse([Uri] $Uri)
+{
+ $HttpClient = $null
+
+ try {
+ # HttpClient is used vs Invoke-WebRequest in order to support Nano Server which doesn't support the Invoke-WebRequest cmdlet.
+ Load-Assembly -Assembly System.Net.Http
+ $HttpClient = New-Object System.Net.Http.HttpClient
+ $Response = $HttpClient.GetAsync($Uri).Result
+ if (($Response -eq $null) -or (-not ($Response.IsSuccessStatusCode)))
+ {
+ $ErrorMsg = "Failed to download $Uri."
+ if ($Response -ne $null)
+ {
+ $ErrorMsg += " $Response"
+ }
+
+ throw $ErrorMsg
+ }
+
+ return $Response
+ }
+ finally {
+ if ($HttpClient -ne $null) {
+ $HttpClient.Dispose()
+ }
+ }
+}
+
+
function Get-Latest-Version-Info([string]$AzureFeed, [string]$AzureChannel, [string]$CLIArchitecture) {
Say-Invocation $MyInvocation
@@ -127,14 +167,14 @@ function Get-Latest-Version-Info([string]$AzureFeed, [string]$AzureChannel, [str
$VersionFileUrl = "$UncachedFeed/Sdk/$AzureChannel/latest.version"
}
- $Response = Invoke-WebRequest -UseBasicParsing $VersionFileUrl
+ $Response = GetHTTPResponse -Uri $VersionFileUrl
+ $StringContent = $Response.Content.ReadAsStringAsync().Result
- switch ($Response.Headers.'Content-Type'){
- { ($_ -eq "application/octet-stream") } { $VersionText = [Text.Encoding]::UTF8.GetString($Response.Content) }
- { ($_ -eq "text/plain") } { $VersionText = $Response.Content }
- default { throw "``$Response.Headers.'Content-Type'`` is an unknown .version file content type." }
+ switch ($Response.Content.Headers.ContentType) {
+ { ($_ -eq "application/octet-stream") } { $VersionText = [Text.Encoding]::UTF8.GetString($StringContent) }
+ { ($_ -eq "text/plain") } { $VersionText = $StringContent }
+ default { throw "``$Response.Content.Headers.ContentType`` is an unknown .version file content type." }
}
-
$VersionInfo = Get-Version-Info-From-Version-Text $VersionText
@@ -282,7 +322,7 @@ function Get-List-Of-Directories-And-Versions-To-Unpack-From-Dotnet-Package([Sys
function Extract-Dotnet-Package([string]$ZipPath, [string]$OutPath) {
Say-Invocation $MyInvocation
- Add-Type -Assembly System.IO.Compression.FileSystem | Out-Null
+ Load-Assembly -Assembly System.IO.Compression.FileSystem
Set-Variable -Name Zip
try {
$Zip = [System.IO.Compression.ZipFile]::OpenRead($ZipPath)
@@ -309,6 +349,23 @@ function Extract-Dotnet-Package([string]$ZipPath, [string]$OutPath) {
}
}
+function DownloadFile([Uri]$Uri, [string]$OutPath) {
+ $Stream = $null
+
+ try {
+ $Response = GetHTTPResponse -Uri $Uri
+ $Stream = $Response.Content.ReadAsStreamAsync().Result
+ $File = [System.IO.File]::Create($OutPath)
+ $Stream.CopyTo($File)
+ $File.Close()
+ }
+ finally {
+ if ($Stream -ne $null) {
+ $Stream.Dispose()
+ }
+ }
+}
+
$AzureChannel = Get-Azure-Channel-From-Channel -Channel $Channel
$CLIArchitecture = Get-CLIArchitecture-From-Architecture $Architecture
$SpecificVersion = Get-Specific-Version-From-Version -AzureFeed $AzureFeed -AzureChannel $AzureChannel -CLIArchitecture $CLIArchitecture -Version $Version
@@ -338,7 +395,7 @@ New-Item -ItemType Directory -Force -Path $InstallRoot | Out-Null
foreach ($DownloadLink in $DownloadLinks) {
$ZipPath = [System.IO.Path]::GetTempFileName()
Say "Downloading $DownloadLink"
- $resp = Invoke-WebRequest -UseBasicParsing $DownloadLink -OutFile $ZipPath
+ DownloadFile -Uri $DownloadLink -OutPath $ZipPath
Say "Extracting zip from $DownloadLink"
Extract-Dotnet-Package -ZipPath $ZipPath -OutPath $InstallRoot
diff --git a/scripts/package/package-debian.sh b/scripts/package/package-debian.sh
deleted file mode 100755
index 0a93146ec..000000000
--- a/scripts/package/package-debian.sh
+++ /dev/null
@@ -1,225 +0,0 @@
-#!/usr/bin/env bash
-#
-# 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.
-
-# Debian Packaging Script
-# Currently Intended to build on ubuntu14.04
-
-set -e
-
-SOURCE="${BASH_SOURCE[0]}"
-while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
- DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
- SOURCE="$(readlink "$SOURCE")"
- [[ "$SOURCE" != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
-done
-DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
-
-source "$DIR/../common/_common.sh"
-REPOROOT="$DIR/../.."
-
-help(){
- echo "Usage: $0"
- echo ""
- echo "Options:"
- echo " --version Specify a version for the package."
- echo " --input Package the entire contents of the directory tree."
- echo " --manpages Directory containing man pages for the package (Optional)."
- echo " --output