IronQR 開始使用 使用許可證密鑰 Using IronQR License Keys Curtis Chau 更新日期:6月 9, 2025 Download IronQR NuGet 下載 Start Free Trial Copy for LLMs Copy for LLMs Copy page as Markdown for LLMs Open in ChatGPT Ask ChatGPT about this page Open in Gemini Ask Gemini about this page Open in Grok Ask Grok about this page Open in Perplexity Ask Perplexity about this page Share Share on Facebook Share on X (Twitter) Share on LinkedIn Copy URL Email article This article was translated from English: Does it need improvement? Translated View the article in English How to Get a License Key Adding an IronQR license key allows you to deploy your project live without restrictions or watermarks. You can buy a license key or sign up for a free 30 day trial key here. Step 1: Download the Latest Version of IronQR Install via NuGet Install the latest version of the IronQR NuGet Package using the following command: Install-Package IronQR For more information, visit the NuGet package page for IronQR. Install via DLL As an alternative, the IronQR.Dll can be downloaded and added to your project as a reference. Step 2: Apply Your License Key Set your license using code Add the following code at the startup of your application, before using IronQR, to set your license key: :path=/static-assets/qr/content-code-examples/how-to/license-keys-set-license.cs // Set the license key for IronQR before using the library IronQr.License.LicenseKey = "IronQR-MYLICENSE-KEY-1EF01"; IRON VB CONVERTER ERROR developers@ironsoftware.com $vbLabelText $csharpLabel Set your license using Web.Config or App.Config To apply a key globally to your application using Web.Config or App.Config, add the following key to your config file in appSettings: <configuration> ... <appSettings> <!-- Add your IronQR License Key here --> <add key="IronQR.LicenseKey" value="IronQR-MYLICENSE-KEY-1EF01"/> </appSettings> ... </configuration> <configuration> ... <appSettings> <!-- Add your IronQR License Key here --> <add key="IronQR.LicenseKey" value="IronQR-MYLICENSE-KEY-1EF01"/> </appSettings> ... </configuration> XML Note: There is a known licensing issue with IronQR versions released before 2024.3.2 on projects: ASP.NET projects .NET Framework version >= 4.6.2 The key stored in a Web.config file may NOT be picked up and used by the product. Visit the troubleshooting article to learn more. Ensure that IronQR.License.IsLicensed returns true to verify the license is applied successfully. Set your license key using a .NET Core appsettings.json file To apply a key globally to your .NET Core application: Add a JSON file to your project called appsettings.json in the root directory. Add a IronQR.LicenseKey key to your JSON config file. The value should be your license key. Ensure the file property Copy to Output Directory is set to Copy always. File: appsettings.json { "IronQR.LicenseKey": "IronQR-MYLICENSE-KEY-1EF01" } Step 3: Test your key Test if your key has been installed correctly using the following code: :path=/static-assets/qr/content-code-examples/how-to/license-keys-test-license.cs // Validate the license key bool result = IronQr.License.IsValidLicense("IronQR-MYLICENSE-KEY-1EF01"); // Check if IronQR is licensed successfully bool isLicensed = IronQr.License.IsLicensed; IRON VB CONVERTER ERROR developers@ironsoftware.com $vbLabelText $csharpLabel Step 4: Get started with your project Follow our tutorial on how to Get Started with IronQR. Questions? If you have any questions, reach out to support@ironsoftware.com 常見問題解答 我如何取得IronQR的授權金鑰? 您可以透過在 IronQR 授權頁面購買或註冊 30 天免費試用版來獲得許可證金鑰。 如何使用 NuGet 安裝 IronQR? 若要使用 NuGet 安裝 IronQR,請使用指令: nuget install IronQR ,並依照 NuGet 套件頁面上的說明進行操作。 如何在 C# 應用程式中應用我的 IronQR 許可證金鑰? 在應用程式啟動程式碼中設定您的 IronQR 授權金鑰: IronQR.License.LicenseKey = "Your-License-Key" 。 我可以在 Web.Config 檔案中設定 IronQR 授權金鑰嗎? 是的,您可以將許可證金鑰新增至 Web.Config 檔案的 appSettings 部分。但是,請注意,在 ASP.NET 專案 2024.3.2 之前的版本中,金鑰可能無法被識別,這是一個已知問題。 如何在 .NET Core 應用程式中應用 IronQR 許可證金鑰? 在專案中新增一個名為appsettings.json的 JSON 文件,並在IronQR.LicenseKey下包含您的許可證金鑰。確保檔案屬性設定為“始終複製”。 如何測試我的 IronQR 授權金鑰是否有效? 使用IronQR.License.IsValidLicense("Your-License-Key")和IronQR.License.IsLicensed來驗證並確保授權已套用。 如果我的 IronQR 許可證金鑰在 Web.Config 中無法識別,我該怎麼辦? 對於 ASP.NET 專案中 2024.3.2 之前的版本,金鑰可能無法被辨識。請查看故障排除文章以取得解決方案。 IronQR許可證金鑰問題是否有技術支援? 是的,如果您遇到任何問題,可以聯絡 support@ironsoftware.com 聯絡支援團隊尋求協助。 在 .NET Framework 專案中使用 IronQR 需要哪些配置? 對於 .NET Framework 項目,請在 Web.Config 或 App.Config 檔案的 appSettings 部分設定許可證金鑰。 我可以在哪裡下載IronQR DLL檔案進行手動安裝? 您可以從 Iron Software 網站下載 IronQR DLL,並將其作為引用添加到您的專案中。 IronQR 是否支援 .NET 10?如何在 .NET 10 專案中應用許可證金鑰? 是的,IronQR 支援 .NET 10 作為其目標框架之一。您可以在 .NET 10 項目中應用許可證密鑰的方式與 .NET Core 相同——在項目根目錄下添加一個appsettings.json文件,並在其中添加"IronQR.LicenseKey": "Your-License-Key" ,並確保該文件的屬性設置為「始終複製」。您也可以在使用庫之前,透過程式碼設定許可證密鑰,例如IronQR.License.LicenseKey = ...如果目標是 .NET Framework 相容性(透過 .NET 10 多目標框架或程式庫的使用),請確保正確使用 Web.Config/App.Config 或基於程式碼的授權。有關詳細信息,請參閱 NuGet 相容性說明。 Curtis Chau 立即與工程團隊聊天 技術作家 Curtis Chau 擁有卡爾頓大學計算機科學學士學位,專注於前端開發,擅長於 Node.js、TypeScript、JavaScript 和 React。Curtis 熱衷於創建直觀且美觀的用戶界面,喜歡使用現代框架並打造結構良好、視覺吸引人的手冊。除了開發之外,Curtis 對物聯網 (IoT) 有著濃厚的興趣,探索將硬體和軟體結合的創新方式。在閒暇時間,他喜愛遊戲並構建 Discord 機器人,結合科技與創意的樂趣。 準備好開始了嗎? Nuget 下載 47,669 | 版本: 2025.11 剛剛發布 免費 NuGet 下載 總下載量:47,669 查看許可證