如何將IronPDF新增到安裝程式中
This article was translated from English: Does it need improvement?
Translated
View the article in English
發佈方法: 了解更多關於.NET部署
- 自包含: 包括.NET執行時和程式庫,以及您的應用程式及其依賴項。 應用程式的使用者可以在沒有安裝.NET執行時的機器上運行它。
- 依賴框架: 僅包含您的應用程式及其依賴項。 應用程式的使用者需要單獨安裝.NET執行時。
發佈命令
依賴框架的可執行檔適用於當前平台:
dotnet publish
dotnet publish
SHELL
依賴框架的可執行檔適用於特定平台:
dotnet publish -r <rid> --self-contained false
dotnet publish -r <rid> --self-contained false
SHELL
提示將
<rid>替換為您的目標平台的運行時識別碼。 例如,Windows 64位的win-x64。)]依賴框架的二進位檔:
dotnet publish
dotnet publish
SHELL
自包含的可執行檔:
dotnet publish -r <rid>
dotnet publish -r <rid>
SHELL
<rid>替換為您的目標平台的特定運行時識別碼。
欲了解更多詳情,請參閱 .NET .NET發佈命令和.NET基本概念 單一檔案部署和可執行文件。
IronPDF安裝程式
- 適用於Windows: 如果您打算針對Windows 10之前的舊作業系統,請在安裝程式中包含Visual C++ 可轉散發套件。
- 適用於Linux: 新增IronPdf.Native.Chrome.Linux套件。
- For MacOS: Include IronPdf.Native.Chrome.MacOS.
- For MacOS ARM: Include IronPdf.Native.Chrome.MacOS.ARM.
授權
您的專案的分佈需要包含SAAS/OEM再分發的授權。
您應在程式碼中應用授權金鑰,如下所示:
// Apply your license for IronPDF
IronPdf.License.LicenseKey = "YOUR_LICENSE_KEY";
// Apply your license for IronPDF
IronPdf.License.LicenseKey = "YOUR_LICENSE_KEY";
' Apply your license for IronPDF
IronPdf.License.LicenseKey = "YOUR_LICENSE_KEY"
$vbLabelText
$csharpLabel
"YOUR_LICENSE_KEY"替換為您的實際IronPDF授權金鑰。
準備開始了嗎?
Nuget 下載 20,296,129 | 版本: 2026.7 剛剛發布

