예제 #1
0
 async Task PrepareDotNet(ITestOutputHelper output)
 {
     if (!UseExistingSetup)
     {
         DotNetSetup setup = new DotNetSetup(Path.Combine(OutputDir, ".dotnet"))
                             .WithSdkVersion(DotnetSdkVersion)
                             .WithArchitecture(Architecture);
         if (DotnetFrameworkVersion != "use-sdk")
         {
             setup.WithFrameworkVersion(DotnetFrameworkVersion);
         }
         if (PrivateCoreCLRBinDir != null)
         {
             setup.WithPrivateRuntimeBinaryOverlay(PrivateCoreCLRBinDir);
         }
         DotNetInstallation = await setup.Run(output);
     }
     else
     {
         DotNetInstallation = new DotNetInstallation(Path.Combine(OutputDir, ".dotnet"), DotnetFrameworkVersion, DotnetSdkVersion, Architecture);
     }
 }