Example #1
0
        public PackageVersion(packageMetadata meta)
        {
            Args.ThrowIfNull(meta, "meta");

            this._meta = meta;
            SetVersion(this._meta.version);
        }
Example #2
0
        private void InitializePackage()
        {
            _package = new package();
            packageMetadata meta = new packageMetadata();

            _package.metadata = meta;
            _package.metadata.dependencies = new packageMetadataDependency[] { };

            Version          = new PackageVersion("1.0.0");
            Version.MetaData = meta;

            Title   = "Package Title";
            Id      = "PackageId";
            Authors = "Package Authors";
            Owners  = "Package Owners";
            RequireLicenseAcceptance = false;
            Description  = "Package Description";
            ReleaseNotes = "Package Release Notes";
            Copyright    = "Copyright {0}"._Format(DateTime.Now.Year);
        }
Example #3
0
 public PackageVersion(string version)
 {
     this._meta = new packageMetadata();
     SetVersion(version);
 }