private void VaryByAncmHostingModel(IList <TestVariant> variants, ServerType server, string tfm, ApplicationType type, RuntimeArchitecture arch, string skip) { foreach (var hostingModel in HostingModels) { var skipAncm = skip; if (hostingModel == HostingModel.InProcess) { // Not supported if (Tfm.Matches(Tfm.Net462, tfm) || Tfm.Matches(Tfm.NetCoreApp20, tfm)) { continue; } if (!IISExpressAncmSchema.SupportsInProcessHosting) { skipAncm = skipAncm ?? IISExpressAncmSchema.SkipReason; } } variants.Add(new TestVariant() { Server = server, Tfm = tfm, ApplicationType = type, Architecture = arch, HostingModel = hostingModel, Skip = skipAncm, }); } }
private RuntimeFlavor GetRuntimeFlavor(string tfm) { if (Tfm.Matches(Tfm.Net462, tfm)) { return(RuntimeFlavor.Clr); } return(RuntimeFlavor.CoreClr); }
private static string SkipIfTfmIsNotSupportedOnThisOS(string tfm) { if (Tfm.Matches(Tfm.Net462, tfm) && !OperatingSystem.IsWindows()) { return("This TFM is not supported on this operating system."); } return(null); }
private void VaryByApplicationType(List <TestVariant> variants, ServerType server, string tfm, string skip) { foreach (var t in ApplicationTypes) { var type = t; if (Tfm.Matches(Tfm.Net462, tfm) && type == ApplicationType.Portable) { if (ApplicationTypes.Count == 1) { // Override the default type = ApplicationType.Standalone; } else { continue; } } VaryByArchitecture(variants, server, tfm, skip, type); } }
private bool CheckTfmIsSupportedForServer(string tfm, ServerType server) { // Not a combination we test return(!(Tfm.Matches(Tfm.Net462, tfm) && ServerType.Nginx == server)); }