|
| 1 | +--- |
| 2 | +title: Resolving TelerikLicense.vb Build Error for Telerik UI for WinForms 2025 Q1 License Key |
| 3 | +description: Learn how to resolvr TelerikLicense.vb Build Error for Telerik UI for WinForms 2025 Q1 License Key |
| 4 | +type: how-to |
| 5 | +page_title: Resolving TelerikLicense.vb Build Error for Telerik UI for WinForms 2025 Q1 License Key |
| 6 | +slug: resolve-telerik-license-vb-error |
| 7 | +tags: licensing , key, winforms, wf, vb, error, build |
| 8 | +res_type: kb |
| 9 | +--- |
| 10 | + |
| 11 | +## Environment |
| 12 | + |
| 13 | +| Product | Version |
| 14 | +| ---- | ---- | |
| 15 | +| Telerik UI for .NET WinForms | 2025 Q1 or later | |
| 16 | + |
| 17 | +## Description |
| 18 | + |
| 19 | +Updating .NET projects in Visual Basics with the new 2025 Q1 assemblies for Progress® Telerik® UI for WinForms results in a build error related to the TelerikLicense.vb file. The build error **"BC30034: Bracketed identifier is missing closing ']'"** occurs when trying to follow the instructions for adding the license key to the project. Additionally, the Telerik License Key view uses C# syntax, which the VB compiler does not understand. |
| 20 | + |
| 21 | +The cause of the build error is an incorrect syntax used in the **TelerikLicense.vb** file. The VB compiler does not recognize the C# syntax provided in the Telerik License Key view. |
| 22 | + |
| 23 | +## Solution |
| 24 | + |
| 25 | +To resolve the build error, use the correct VB syntax in the **TelerikLicense.vb** file. Replace the content of the TelerikLicense.vb file with the following VB syntax: |
| 26 | + |
| 27 | +````VB.NET |
| 28 | + |
| 29 | +<Assembly: Telerik.Licensing.EvidenceAttribute("...your license code string...")> |
| 30 | + |
| 31 | +```` |
| 32 | + |
| 33 | +Replace *...your license code string...* with your actual license code string from your Telerik account. |
| 34 | + |
| 35 | +Alternatively, to prevent licensing warnings and make the license key available to all Telerik .NET apps you develop on your local machine, follow these steps: |
| 36 | + |
| 37 | +1. Go to the **License Keys** page in your Telerik account. |
| 38 | +2. Click the **Download License Key** button. |
| 39 | +3. Save the **telerik-license.txt** file to one of the following directories on your local machine: |
| 40 | + * %AppData%\Telerik\telerik-license.txt (e.g., C:\Users\...\AppData\Roaming\Telerik\telerik-license.txt) |
| 41 | + * C:\inetpub\wwwroot\telerik-license.txt |
| 42 | + * C:\inetpub\telerik-license.txt |
| 43 | + * C:\telerik-license.txt |
| 44 | + |
| 45 | + |
| 46 | +## See Also |
| 47 | + |
| 48 | +* [Setting Up Your License Key]({%slug license-key%}) |
| 49 | +* [License Activation Errors and Warnings]({%slug license-errors-warnings%}) |
| 50 | +* [Frequently Asked Questions about Your Telerik UI for .NET WinForms License Key]({%slug licensing-faq%}) |
| 51 | +* [Adding the License Key to CI Services]({%slug add-license-to-ci-cd%}) |
0 commit comments