Build Dependency Issue When Upgrading Telerik UI for ASP.NET AJAX to 2026.3.812
Environment
| Product | UI for ASP.NET AJAX |
| Version | 2026.3.812 |
Description
When upgrading Telerik UI for ASP.NET AJAX from version 2026.2.708 to 2026.3.812, the build may fail due to a dependency on Telerik.Licensing 1.9.1. This version includes the Telerik.Licensing.Analyzer.dll, which requires Microsoft.CodeAnalysis 4.8.0.0. If the build environment uses Visual Studio 2019 or MSBuild 16, which do not support Roslyn 4.8, the build fails with the error:
error CS8032: An instance of analyzer Telerik.Licensing.Analyzer.AttributeAnalyzerCS cannot be created ... Could not load file or assembly 'Microsoft.CodeAnalysis, Version=4.8.0.0'
Cause
The issue arises due to the dependency of Telerik.Licensing.Analyzer.dll on Microsoft.CodeAnalysis 4.8.0.0, which is not compatible with Visual Studio 2019/MSBuild 16. The previous Telerik.Licensing version (1.8.2) did not include this dependency. Upgrading to Telerik UI for ASP.NET AJAX 2026.3.812 enforces a minimum Telerik.Licensing version of 1.9.1, making this conflict unavoidable.
Solution
Short-Term Workaround
To temporarily resolve this issue without upgrading the build toolchain to Visual Studio 2022 or MSBuild 17+, disable the Telerik.Licensing analyzer during compilation. Add the following configuration to the project file:
<Target Name="RemoveValidationsGeneratorAnalyzer" BeforeTargets="CoreCompile">
<ItemGroup>
<Analyzer Remove="@(Analyzer)" Condition="'%(Filename)' == 'Telerik.Licensing.Analyzer'" />
</ItemGroup>
</Target>
This configuration excludes the Telerik.Licensing.Analyzer.dll but retains all other components of the Telerik.Licensing package.
Long-Term Solution
Upgrade the build toolchain to Visual Studio 2022 (17.8+) or MSBuild 17+, which supports Microsoft.CodeAnalysis 4.8.0.0. Alternatively, wait for the release of Telerik.Licensing 1.9.2, which is expected to address this issue.
Important Notes
-
Avoid Downgrading Telerik.Licensing
Do not attempt to downgradeTelerik.Licensingto version 1.8.2, as many dependencies in Telerik UI for ASP.NET AJAX (e.g., Document Processing, Telerik.Web.Spreadsheet) rely on features introduced in Telerik.Licensing 1.9.1. -
Runtime Behavior with Workaround
Disabling the Telerik.Licensing analyzer does not affect runtime license validation, registration, or any other runtime behavior. No issues are expected as long as the runtime assemblyTelerik.Licensing.dllis included. -
Monitor for Updates
Replace the temporary workaround with the official fix inTelerik.Licensing 1.9.2when it becomes available.