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.
This commit is contained in:
parent
77d914bc86
commit
5f791ff9c5
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)]
|
[BuildPlatforms(BuildPlatform.Windows, BuildPlatform.OSX, BuildPlatform.Ubuntu)]
|
||||||
public static BuildTargetResult DownloadHostAndSharedFxInstallers(BuildTargetContext c)
|
public static BuildTargetResult DownloadHostAndSharedFxInstallers(BuildTargetContext c)
|
||||||
{
|
{
|
||||||
|
if (CurrentPlatform.IsUbuntu && !CurrentPlatform.IsVersion("14.04"))
|
||||||
|
{
|
||||||
|
return c.Success();
|
||||||
|
}
|
||||||
|
|
||||||
var sharedFrameworkVersion = CliDependencyVersions.SharedFrameworkVersion;
|
var sharedFrameworkVersion = CliDependencyVersions.SharedFrameworkVersion;
|
||||||
var hostVersion = CliDependencyVersions.SharedHostVersion;
|
var hostVersion = CliDependencyVersions.SharedHostVersion;
|
||||||
|
|
||||||
|
@ -198,7 +203,7 @@ namespace Microsoft.DotNet.Cli.Build
|
||||||
|
|
||||||
Mkdirp(Path.GetDirectoryName(sharedFrameworkInstallerDownloadFile));
|
Mkdirp(Path.GetDirectoryName(sharedFrameworkInstallerDownloadFile));
|
||||||
Mkdirp(Path.GetDirectoryName(sharedHostInstallerDownloadFile));
|
Mkdirp(Path.GetDirectoryName(sharedHostInstallerDownloadFile));
|
||||||
|
|
||||||
if ( ! File.Exists(sharedFrameworkInstallerDownloadFile))
|
if ( ! File.Exists(sharedFrameworkInstallerDownloadFile))
|
||||||
{
|
{
|
||||||
var sharedFrameworkInstallerDestinationFile = c.BuildContext.Get<string>("SharedFrameworkInstallerFile");
|
var sharedFrameworkInstallerDestinationFile = c.BuildContext.Get<string>("SharedFrameworkInstallerFile");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue