只寫和Nuget相關的
Example:
vcpkg export zlib zlib:x64-windows boost --nuget
相關命令參數:
vcpkg help export //查看導出的幫助文檔
--nuget Export a NuGet package //導出成Nuget包
--output=... Specify the output name (used to construct filename) //設置輸出文件名,最終文件名會自動加上[version].nupkg,,如果指定了id,version,會自動生成文件名,這里可以不指定
--output-dir=... Specify the output directory for produced artifacts //指定輸出路徑
--nuget-id=... Specify the id for the exported NuGet package (overrides --output) //指定nugetid
--nuget-description=... Specify a description for the exported NuGet package //指定nuget包的描述
--nuget-version=... Specify the version for the exported NuGet package //指定版本
注意事項:
打包時會將依賴項也打到同一個包里,這個有點不太好,有可能導致包比較大
浙公網安備 33010602011771號