public static PackageID GetDefaultPackageID(ProjectFilePath projectFilePath)
        {
            var projectFileName = VsIoUtilities.GetProjectFileName(projectFilePath);

            var packageID = Utilities.GetDefaultPackageID(projectFileName);

            return(packageID);
        }
        public static PackageID GetDefaultPackageID(ProjectFileName projectFileName)
        {
            var projectFileNameWithoutExtension = PathUtilities.GetFileNameWithoutExtension(projectFileName);

            var packageID = Utilities.GetDefaultPackageID(projectFileNameWithoutExtension);

            return(packageID);
        }
        public static NupkgFilePath Pack(FilePath dotnetExecutableFilePath, ProjectFilePath projectFilePath, DirectoryPath outputDirectoryPath, ILogger logger)
        {
            // Determine the package ID.
            var packageID = NugetUtilities.GetDefaultPackageID(projectFilePath);

            var packageFilePath = DotnetCommandServicesProvider.Pack(dotnetExecutableFilePath, projectFilePath, outputDirectoryPath, packageID, Enumerable.Empty <string>(), logger);

            return(packageFilePath);
        }