NuGet.Manifest.ReadFrom C# (CSharp) Method

ReadFrom() public static method

public static ReadFrom ( Stream stream ) : Manifest
stream Stream
return Manifest
        public static Manifest ReadFrom(Stream stream)
        {
            return ReadFrom(stream, NullPropertyProvider.Instance);
        }

Same methods

Manifest::ReadFrom ( Stream stream, IPropertyProvider propertyProvider ) : Manifest

Usage Example

Exemplo n.º 1
0
        protected void ReadManifest(Stream manifestStream)
        {
            IPackageMetadata metadata = Manifest.ReadFrom(manifestStream, false).Metadata;

            this.Id         = metadata.Id;
            this.Version    = metadata.Version;
            this.Title      = metadata.Title;
            this.Authors    = metadata.Authors;
            this.Owners     = metadata.Owners;
            this.IconUrl    = metadata.IconUrl;
            this.LicenseUrl = metadata.LicenseUrl;
            this.ProjectUrl = metadata.ProjectUrl;
            this.RequireLicenseAcceptance = metadata.RequireLicenseAcceptance;
            this.DevelopmentDependency    = metadata.DevelopmentDependency;
            this.Description               = metadata.Description;
            this.Summary                   = metadata.Summary;
            this.ReleaseNotes              = metadata.ReleaseNotes;
            this.Language                  = metadata.Language;
            this.Tags                      = metadata.Tags;
            this.DependencySets            = metadata.DependencySets;
            this.FrameworkAssemblies       = metadata.FrameworkAssemblies;
            this.Copyright                 = metadata.Copyright;
            this.PackageAssemblyReferences = metadata.PackageAssemblyReferences;
            this.MinClientVersion          = metadata.MinClientVersion;
            if (!string.IsNullOrEmpty(this.Tags))
            {
                this.Tags = " " + this.Tags + " ";
            }
        }
All Usage Examples Of NuGet.Manifest::ReadFrom