Пример #1
0
        /// <summary>
        /// 判断 a 是否兼容 b 版本
        /// </summary>
        /// <param name="a"></param>
        /// <param name="b"></param>
        /// <returns></returns>
        private static bool IsCompatible(DotNetType a, DotNetType b)
        {
            if (a.HasFlag(DotNetType.NetCore) && b.HasFlag(DotNetType.NetCore))
            {
                return(true);
            }

            if (a.HasFlag(DotNetType.NetFramework) && b.HasFlag(DotNetType.NetFramework))
            {
                return(true);
            }

            return(false);
        }