2017-03-09 21:31:04 +00:00
|
|
|
// 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.
|
|
|
|
|
|
|
|
using System;
|
2017-04-06 20:43:26 +00:00
|
|
|
using System.IO;
|
2017-03-09 21:31:04 +00:00
|
|
|
using Microsoft.DotNet.Cli.Utils;
|
|
|
|
|
|
|
|
namespace Microsoft.DotNet.Tools.Test.Utilities
|
|
|
|
{
|
|
|
|
public static class DotnetUnderTest
|
|
|
|
{
|
|
|
|
static string _pathToDotnetUnderTest;
|
|
|
|
|
|
|
|
public static string FullName
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
if (_pathToDotnetUnderTest == null)
|
|
|
|
{
|
|
|
|
_pathToDotnetUnderTest = new Muxer().MuxerPath;
|
|
|
|
}
|
2017-03-09 21:37:17 +00:00
|
|
|
|
2017-03-09 21:31:04 +00:00
|
|
|
return _pathToDotnetUnderTest;
|
|
|
|
}
|
|
|
|
}
|
2017-04-06 20:43:26 +00:00
|
|
|
|
2017-04-07 23:36:23 +00:00
|
|
|
public static string WithBackwardsCompatibleRuntimes
|
2017-04-06 20:43:26 +00:00
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
2017-04-07 23:36:23 +00:00
|
|
|
return Path.Combine(
|
|
|
|
new RepoDirectoriesProvider().Stage2WithBackwardsCompatibleRuntimesDirectory,
|
|
|
|
"dotnet");
|
2017-04-06 20:43:26 +00:00
|
|
|
}
|
|
|
|
}
|
2017-03-09 21:31:04 +00:00
|
|
|
}
|
|
|
|
}
|