public SharedFxTests(ITestOutputHelper output) { _output = output; _expectedTfm = TestData.GetDefaultNetCoreTargetFramework(); _expectedRid = TestData.GetSharedFxRuntimeIdentifier(); _sharedFxRoot = string.IsNullOrEmpty(Environment.GetEnvironmentVariable("ASPNET_RUNTIME_PATH")) ? Path.Combine(TestData.GetTestDataValue("SharedFrameworkLayoutRoot"), "shared", "Microsoft.AspNetCore.App", TestData.GetTestDataValue("RuntimePackageVersion")) : Environment.GetEnvironmentVariable("ASPNET_RUNTIME_PATH"); _expectedVersionFileName = string.IsNullOrEmpty(Environment.GetEnvironmentVariable("ASPNET_RUNTIME_PATH")) ? ".version" : "Microsoft.AspNetCore.App.versions.txt"; }
public TargetingPackTests(ITestOutputHelper output) { _output = output; _expectedRid = TestData.GetSharedFxRuntimeIdentifier(); _targetingPackTfm = TestData.GetDefaultNetCoreTargetFramework(); var root = string.IsNullOrEmpty(Environment.GetEnvironmentVariable("helix")) ? TestData.GetTestDataValue("TargetingPackLayoutRoot") : Environment.GetEnvironmentVariable("DOTNET_ROOT"); _targetingPackRoot = Path.Combine( root, "packs", "Microsoft.AspNetCore.App.Ref", TestData.GetTestDataValue("TargetingPackVersion")); _isTargetingPackBuilding = bool.Parse(TestData.GetTestDataValue("IsTargetingPackBuilding")); }