1
cpack
コマンドを使用して、「app.nuspec」ファイルから自己完結型の「app.nupkg」パッケージを構築したいと考えています。私のアプリケーションのディレクトリツリーは次のとおりです。Chocolateyが〜2GB内蔵パッケージをパックできないのはなぜですか?
C:\CHOCO_REPO\APP
│ app.nuspec
│
├───bin
│ dist
│ Setup.exe
│
└───tools
chocolateyinstall.ps1
chocolateyuninstall.ps1
distファイル(サイズ〜2G)は実際にはプログラムです。デバッグオプションで
bin\dist
Cannot access a closed stream
::私が得る
cpack app.nupgk
:私が実行しようとすると
cpack app.nuspec -d
私が取得:
Attempting to build package from 'app.nuspec'.
bin\dist
Attempting to delete file "C:\choco_repo\APP\app.nupkg".
Chocolatey had an error occur:
System.ObjectDisposedException: Can not access a closed Stream.
at System.IO.Compression.DeflateStream.EnsureNotDisposed()
at MS.Internal.IO.Packaging.CompressStream.Flush()
at MS.Internal.IO.Zip.ZipIOLocalFileBlock.FlushExposedStreams()
at MS.Internal.IO.Zip.ZipIOLocalFileBlock.UpdateReferences(Boolean closingFlag)
at MS.Internal.IO.Zip.ZipIOBlockManager.SaveContainer(Boolean closingFlag)
at MS.Internal.IO.Zip.ZipIOBlockManager.SaveStream(ZipIOLocalFileBlock blockRequestingFlush, Boolean closingFlag)
at MS.Internal.IO.Zip.ZipIOModeEnforcingStream.Dispose(Boolean disposing)
at System.IO.Stream.Close()
at System.IO.Packaging.PackagePart.Close()
at System.IO.Packaging.Package.DoClose(PackagePart p)
at System.IO.Packaging.Package.DoOperationOnEachPart(PartOperation operation)
at System.IO.Packaging.Package.System.IDisposable.Dispose()
at NuGet.PackageBuilder.Save(Stream stream)
at chocolatey.infrastructure.app.nuget.NugetPack.BuildPackage(PackageBuilder builder, IFileSystem fileSystem, String outputPath)
at chocolatey.infrastructure.app.services.NugetService.pack_run(ChocolateyConfiguration config)
at chocolatey.infrastructure.app.runners.GenericRunner.run(ChocolateyConfiguration config, Container container, Boolean isConsole, Action`1 parseArgs)
at chocolatey.infrastructure.app.runners.ConsoleApplication.run(String[] args, ChocolateyConfiguration config, Container container)
at chocolatey.console.Program.Main(String[] args)
Exiting with 1
任意のヘルプ?ありがとうございます
実際には、distファイルのサイズは2.7GBです。あなたがこの問題を解決しようと正しい方向に私を指すことができることを認識している参照/リンクはありますか? – diegus