Ejemplo n.º 1
0
        internal static string GetDotNetInstallDir(RuntimeArchitecture arch)
        {
            var dotnetDir = DotNetHome;

            if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
            {
                dotnetDir = Path.Combine(dotnetDir, arch.ToString());
            }

            return(dotnetDir);
        }
Ejemplo n.º 2
0
 public void VerifyArchitecture(HttpResponseMessage response, RuntimeArchitecture arch)
 {
     Assert.True(response.Headers.TryGetValues("Arch", out var values), "Missing Arch header");
     Assert.Equal(arch.ToString(), values.First(), ignoreCase: true);
 }