Example #1
0
        public static string FindPackageNameFromReferenceName(string includeString)
        {
            if (!IsDevExpress(includeString))
            {
                return(null);
            }
            var    version       = DependenciesGenerator.GetVersion(includeString);
            var    referenceName = DependenciesGenerator.GetReferenceName(includeString);
            string packageName;

            if (TryGetPackageName(referenceName, version, out packageName))
            {
                return(packageName);
            }
            return(null);
        }
Example #2
0
        public static bool IsReferenceConvertibleToPackageReference(string includeString)
        {
            if (versionToReferences == null)
            {
                versionToReferences = new Dictionary <string, Dictionary <string, string> >();
            }
            var version = DependenciesGenerator.GetVersion(includeString);

            if (version == null)
            {
                return(false);
            }
            var    referenceName = DependenciesGenerator.GetReferenceName(includeString);
            string packageName;

            return(TryGetPackageName(referenceName, version, out packageName));
        }