public static bool IsLowerThanNetStandard16(this TargetFramework framework) { if (framework.IsNetStandard20()) { return(false); } return(framework.IsNetStandard1x() && framework.Id.Version != "1.6"); }
void UpdateTargetFrameworkParameters() { TargetFramework framework = targetFrameworks [selectedTargetFrameworkIndex]; wizard.Parameters ["Framework"] = framework.Id.GetShortFrameworkName(); wizard.Parameters ["UseNetCore20"] = framework.IsNetCoreApp20().ToString(); wizard.Parameters ["UseNetCore1x"] = framework.IsNetCoreApp1x().ToString(); wizard.Parameters ["UseNetStandard20"] = framework.IsNetStandard20().ToString(); wizard.Parameters ["UseNetStandard1x"] = framework.IsNetStandard1x().ToString(); }
public static bool IsNetStandard20OrNetCore20(this TargetFramework framework) { return(framework.IsNetStandard20() || framework.IsNetCoreApp20()); }