Merge pull request #3334 from livarcocc/skip_installer_for_ubuntu_16
We need to prevent downloading deb packages on Ubuntu16.04 since we d…
This commit is contained in:
commit
48b3b02d3c
1 changed files with 6 additions and 1 deletions
|
@ -187,6 +187,11 @@ namespace Microsoft.DotNet.Cli.Build
|
|||
[BuildPlatforms(BuildPlatform.Windows, BuildPlatform.OSX, BuildPlatform.Ubuntu)]
|
||||
public static BuildTargetResult DownloadHostAndSharedFxInstallers(BuildTargetContext c)
|
||||
{
|
||||
if (CurrentPlatform.IsUbuntu && !CurrentPlatform.IsVersion("14.04"))
|
||||
{
|
||||
return c.Success();
|
||||
}
|
||||
|
||||
var sharedFrameworkVersion = CliDependencyVersions.SharedFrameworkVersion;
|
||||
var hostVersion = CliDependencyVersions.SharedHostVersion;
|
||||
|
||||
|
@ -198,7 +203,7 @@ namespace Microsoft.DotNet.Cli.Build
|
|||
|
||||
Mkdirp(Path.GetDirectoryName(sharedFrameworkInstallerDownloadFile));
|
||||
Mkdirp(Path.GetDirectoryName(sharedHostInstallerDownloadFile));
|
||||
|
||||
|
||||
if ( ! File.Exists(sharedFrameworkInstallerDownloadFile))
|
||||
{
|
||||
var sharedFrameworkInstallerDestinationFile = c.BuildContext.Get<string>("SharedFrameworkInstallerFile");
|
||||
|
|
Loading…
Reference in a new issue