An unzipped package has its contents laid out as physical files on disk inside a directory, instead of inside a .nupkg file.
An unzipped package is strictly required to have this directory structure: ([] denotes directory) jQuery.1.0.nupkg [jQuery.1.0] jQuery.1.0.nuspec [content] jQuery.js [lib] jQuery.dll [tools] install.ps1
Inheritance: LocalPackage
Exemplo n.º 1
0
        public Task<Stream> OpenNupkgStreamAsync(PackageInfo package)
        {
            var nuspecPath = _pathResolver.GetManifestFilePath(package.Id, package.Version);
            var unzippedPackage = new UnzippedPackage(_fileSystem, nuspecPath);

            var nupkgPath = _pathResolver.GetPackageFilePath(package.Id, package.Version);
            _reports.Quiet.WriteLine(string.Format("  OPEN {0}", _fileSystem.GetFullPath(nupkgPath)));

            return Task.FromResult(unzippedPackage.GetStream());
        }