@@ -14,13 +14,13 @@ internal class DotNetHelper
1414{
1515 private static readonly object s_lockObj = new ( ) ;
1616
17- private static bool IsMonoRuntime { get ; } = DetermineIsMonoRuntime ( ) ;
1817 public static string DotNetPath { get ; } = Path . Combine ( Config . DotNetDirectory , "dotnet" ) ;
1918 public static string LogsDirectory { get ; } = Path . Combine ( Directory . GetCurrentDirectory ( ) , "logs" ) ;
2019 public static string PackagesDirectory { get ; } = Path . Combine ( Directory . GetCurrentDirectory ( ) , "packages" ) ;
2120 public static string ProjectsDirectory { get ; } = Path . Combine ( Directory . GetCurrentDirectory ( ) , $ "projects-{ DateTime . Now : yyyyMMddHHmmssffff} ") ;
2221
2322 private ITestOutputHelper OutputHelper { get ; }
23+ private bool IsMonoRuntime { get ; }
2424
2525 public DotNetHelper ( ITestOutputHelper outputHelper )
2626 {
@@ -38,6 +38,7 @@ public DotNetHelper(ITestOutputHelper outputHelper)
3838 Directory . CreateDirectory ( Config . DotNetDirectory ) ;
3939 ExecuteHelper . ExecuteProcessValidateExitCode ( "tar" , $ "xzf { Config . SdkTarballPath } -C { Config . DotNetDirectory } ", outputHelper ) ;
4040 }
41+ IsMonoRuntime = DetermineIsMonoRuntime ( Config . DotNetDirectory ) ;
4142
4243 if ( ! Directory . Exists ( ProjectsDirectory ) )
4344 {
@@ -234,10 +235,8 @@ private static string GetBinLogOption(string projectName, string command, string
234235 return $ "/bl:{ Path . Combine ( LogsDirectory , $ "{ fileName } .binlog") } ";
235236 }
236237
237- private static bool DetermineIsMonoRuntime ( )
238+ private static bool DetermineIsMonoRuntime ( string dotnetRoot )
238239 {
239- string dotnetRoot = Config . DotNetDirectory ;
240-
241240 string sharedFrameworkRoot = Path . Combine ( dotnetRoot , "shared" , "Microsoft.NETCore.App" ) ;
242241 if ( ! Directory . Exists ( sharedFrameworkRoot ) )
243242 {
0 commit comments