/// <summary> /// Handle any failures to parse the target framework. /// </summary> static bool CanReferenceNetStandardProject(DotNetProject project, DotNetProject targetProject) { try { return(DotNetCoreFrameworkCompatibility.CanReferenceNetStandardProject(project, targetProject)); } catch (Exception ex) { LoggingService.LogError("Error checking target framework compatibility.", ex); } return(false); }
bool CanReferenceProject(DotNetProject targetProject) { if (!targetProject.TargetFramework.IsNetStandard()) { return(false); } if (!Project.TargetFramework.IsNetCoreApp()) { return(false); } return(DotNetCoreFrameworkCompatibility.CanReferenceNetStandardProject(Project.TargetFramework.Id, targetProject)); }