Beispiel #1
0
        /// <summary>
        /// Creates a package with the specified framework version folder.
        /// </summary>
        /// <param name="packageName"></param>
        /// <param name="version"></param>
        /// <returns></returns>
        public static string CreatePackageWithTargetFramework(string packageName, string packageVersion, string frameworkVersion)
        {
            string standardOutput     = string.Empty;
            string standardError      = string.Empty;
            string nuspecFileFullPath = NuspecHelper.CreateDefaultNuspecFile(packageName, packageVersion);

            return(CreatePackageWithTargetFrameworkInternal(ref standardOutput, ref standardError, nuspecFileFullPath, frameworkVersion));
        }
Beispiel #2
0
        /// <summary>
        /// Creates a package with the specified minclient version.
        /// </summary>
        /// <param name="packageName"></param>
        /// <param name="version"></param>
        /// <returns></returns>
        public static string CreatePackageWithMinClientVersion(string packageName, string version, string minClientVersion)
        {
            string standardOutput     = string.Empty;
            string standardError      = string.Empty;
            string nuspecFileFullPath = NuspecHelper.CreateDefaultNuspecFile(packageName, version);

            NuspecHelper.AddMinClientVersionAttribute(nuspecFileFullPath, minClientVersion);
            return(CreatePackageInternal(ref standardOutput, ref standardError, nuspecFileFullPath));
        }
Beispiel #3
0
        /// <summary>
        /// Creates a package given the package name and version.
        /// </summary>
        /// <param name="packageName"></param>
        /// <param name="version"></param>
        /// <returns></returns>
        public static string CreatePackage(string packageName, string version = "1.0.0", string minClientVersion = null, string title = null, string tags = null, string description = null, string licenseUrl = null, string dependencies = null)
        {
            string standardOutput     = string.Empty;
            string standardError      = string.Empty;
            string nuspecFileFullPath = NuspecHelper.CreateDefaultNuspecFile(packageName, version, minClientVersion, title, tags, description, licenseUrl, dependencies);
            string nuspecDir          = Path.GetDirectoryName(nuspecFileFullPath);

            return(CreatePackageInternal(ref standardOutput, ref standardError, nuspecFileFullPath));
        }
Beispiel #4
0
        /// <summary>
        /// Creates a windows 8 curated package given the package name and version.
        /// </summary>
        /// <param name="packageName"></param>
        /// <param name="version"></param>
        /// <returns></returns>
        public static string CreateWebMatrixCuratedPackage(string packageName, string version = "1.0.0")
        {
            string standardOutput     = string.Empty;
            string standardError      = string.Empty;
            string nuspecFileFullPath = NuspecHelper.CreateDefaultNuspecFile(packageName, version);

            NuspecHelper.AddWebMatrixTag(nuspecFileFullPath);
            return(CreatePackageInternal(ref standardOutput, ref standardError, nuspecFileFullPath));
        }
Beispiel #5
0
        /// <summary>
        /// Creates a package given the package name and version.
        /// </summary>
        /// <param name="packageName"></param>
        /// <param name="version"></param>
        /// <returns></returns>
        public static string CreatePackage(string packageName, string version = "1.0.0", string minClientVersion = null)
        {
            string standardOutput     = string.Empty;
            string standardError      = string.Empty;
            string nuspecFileFullPath = NuspecHelper.CreateDefaultNuspecFile(packageName, version, minClientVersion);
            string nuspecDir          = Path.GetDirectoryName(nuspecFileFullPath);

            return(CreatePackageInternal(ref standardOutput, ref standardError, nuspecFileFullPath));
        }