From 5f791ff9c5d6a656bce8b8adaffa3574f33b02cb Mon Sep 17 00:00:00 2001 From: Livar Cunha Date: Wed, 1 Jun 2016 17:12:31 -0700 Subject: [PATCH] We need to prevent downloading deb packages on Ubuntu16.04 since we don't have them there yet. This is a hack and the right fix would be to not use a enum with the BuildPlatform, but something that allowed us to express the platform and the version of the platform. --- build_projects/dotnet-cli-build/PrepareTargets.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/build_projects/dotnet-cli-build/PrepareTargets.cs b/build_projects/dotnet-cli-build/PrepareTargets.cs index 1b69277a2..b35465f36 100644 --- a/build_projects/dotnet-cli-build/PrepareTargets.cs +++ b/build_projects/dotnet-cli-build/PrepareTargets.cs @@ -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("SharedFrameworkInstallerFile");