dotnet-installer/test/Microsoft.DotNet.Tools.Tests.Utilities/EnvironmentInfo.cs
Eric Erhardt bd58bcf03b Disable F# tests on linux-x64.
linux-x64 only has .NET Core 2.0, but F# requires .NET Core 1.0 runtime.
2017-03-20 12:23:24 -05:00

35 lines
No EOL
1,016 B
C#

// 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.
namespace Microsoft.DotNet.Tools.Test.Utilities
{
public static class EnvironmentInfo
{
public static bool HasSharedFramework(string framework)
{
string rid = RepoDirectoriesProvider.BuildRid;
if (framework == "netcoreapp1.0")
{
switch (rid)
{
case "fedora.24-x64":
case "opensuse.42.1-x64":
case "ubuntu.16.10-x64":
case "linux-x64":
return false;
}
}
else if (framework == "netcoreapp1.1")
{
switch (rid)
{
case "linux-x64":
return false;
}
}
return true;
}
}
}