Пример #1
0
        public static PackageDirectoryName GetPackageDirectoryName(PackageID packageID)
        {
            var packageFileSystemName = Utilities.GetPackageNuspecFileSystemName(packageID);
            var packageDirectoryName  = packageFileSystemName.Value.AsPackageDirectoryName();

            return(packageDirectoryName);
        }
Пример #2
0
        public static NuspecFileName GetNuspecFileName(PackageID packageID)
        {
            var packageFileSystemName          = Utilities.GetPackageNuspecFileSystemName(packageID);
            var nuspecFileNameWithoutExtension = Utilities.GetNuspecFileNameWithoutExtension(packageFileSystemName);
            var nuspecFileName = PathUtilities.GetFileName(nuspecFileNameWithoutExtension, NuspecFileExtension.Instance).AsNuspecFileName();

            return(nuspecFileName);
        }