GetPackageNameWithoutVersionInfo() 정적인 개인적인 메소드

Get the package name without version info
static private GetPackageNameWithoutVersionInfo ( string packageName ) : string
packageName string
리턴 string
        /// <summary>
        /// True, if the package matches.
        /// </summary>
        /// <param name="packageName">Package name</param>
        /// <param name="filePath">Package file Path</param>
        /// <returns></returns>
        internal static bool IsNameMatch(string packageName, string filePath)
        {
            // Get the file name
            var newName = Path.GetFileNameWithoutExtension(filePath);

            // Strip off the version info from the file name, e.g., Jquery.2.1.3
            newName = PackageUtility.GetPackageNameWithoutVersionInfo(newName);

            if (WildcardPattern.ContainsWildcardCharacters(packageName))
            {
                // Applying the wildcard pattern matching
                const WildcardOptions wildcardOptions = WildcardOptions.CultureInvariant | WildcardOptions.IgnoreCase;
                var wildcardPattern = new WildcardPattern(packageName, wildcardOptions);

                return(wildcardPattern.IsMatch(newName));
            }

            if (string.IsNullOrWhiteSpace(newName))
            {
                return(false);
            }

            var reval = (newName.Equals(packageName, StringComparison.OrdinalIgnoreCase));

            return(reval);
        }
        /// <summary>
        /// Unzip the package and create PackageImpl object
        /// </summary>
        /// <param name="nupkgPath">The .nupkg file path</param>
        /// <returns></returns>
        private static PackageBase ProcessZipPackage(string nupkgPath)
        {
            string packageName = Path.GetFileNameWithoutExtension(nupkgPath);

            packageName = PackageUtility.GetPackageNameWithoutVersionInfo(packageName);
            PackageBase package = PackageUtility.DecompressFile(nupkgPath, packageName);

            return(package);
        }