[Solved] Error MSB4062: The "Telerik.Licensing.Tasks.ResolveTelerikProducts" task could not be loaded from the assembly

1 Answer 50 Views
Licensing
Telerik Admin
Top achievements
Rank 1
Iron
Telerik Admin asked on 12 Mar 2026, 02:59 PM

We have identified a licensing issue caused by the upgrade to VS2026 18.4.0 and .NET 10.0.200. Our team is actively working to resolve the problem. Any further updates will be shared in this public item to ensure better visibility.

A potential workaround in the meantime is to roll back to VS2026 v18.3.2.

1 Answer, 1 is accepted

Sort by
0
Hristian Stefanov
Telerik team
answered on 18 Mar 2026, 03:26 PM

Hi all,

If you continue to encounter this error, use Telerik.Licensing v1.8 and do a full Clean and Rebuild:

<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">

  <PropertyGroup>
    <TargetFramework>net10.0</TargetFramework>
    <Nullable>enable</Nullable>
    <ImplicitUsings>enable</ImplicitUsings>
    <OverrideHtmlAssetPlaceholders>true</OverrideHtmlAssetPlaceholders>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="10.0.5" />
    <PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="10.0.5" PrivateAssets="all" />
    <PackageReference Include="Telerik.Licensing" Version="1.8.2" />
  </ItemGroup>

</Project>

If you cannot update for some reason, or there are complications:

  1. You can apply the same fix on your project by adding this Directory.Build.targets file in the same directory as your .csproj file with the following content:
    <?xml version="1.0" encoding="utf-8"?>
    <Project>
        <Target
            Name="ResolveTelerikReferences"
            Condition="$(ImportXamlTargets)!='true' Or !$(MSBuildProjectName.EndsWith('_wpftmp'))"
            DependsOnTargets="ResolveReferences"
            BeforeTargets="CoreCompile">
    
            <ResolveTelerikProducts
                Condition="'$(DotNetWatchBuild)' != 'true'"
                OutputPath="$(OutputPath)"
                IntermediateOutputPath="$(IntermediateOutputPath)"
                MSBuildProjectName="$(MSBuildProjectName)"
                MSBuildProjectDirectory="$(MSBuildProjectDirectory)"
                MSBuildProjectExtension="$(MSBuildProjectExtension)"
                Language="$(Language)"
                Platform="$(Platform)"
                TargetFramework="$(TargetFramework)"
                TargetFrameworkVersion="$(TargetFrameworkVersion)"
                TargetFrameworks="$(TargetFrameworks)"
                VisualStudioVersion="$(VisualStudioVersion)"
                UsingMicrosoftNETSdk="$(UsingMicrosoftNETSdk)"
                UsingMicrosoftNETSdkRazor="$(UsingMicrosoftNETSdkRazor)"
                UsingMicrosoftNETSdkWeb="$(UsingMicrosoftNETSdkWeb)"
                ImportXamlTargets="$(ImportXamlTargets)"
                OutputType="$(OutputType)"
                UseMaui="$(UseMaui)"
                UseTelerikTheming="$(UseTelerikTheming)"
                NuGetPackageRoot="$(NuGetPackageRoot)"
                PackageReferences="@(PackageReference)"
                ReferencePaths="@(ReferencePath)"
                TelerikLicensingVerbosity="$(TelerikLicensingVerbosity)"
                TelerikLicenseGen="$(TelerikLicenseGen)"
                TelerikLicenseDate="$(TelerikLicenseDate)"
                TelerikLicensingAlias="$(TelerikLicensingAlias)"
                TelerikLicensingStrict="$(TelerikLicensingStrict)"
                TelerikZeroDepsMetadataReader="$(TelerikZeroDepsMetadataReader)"
                TelerikForceZeroDepsMetadataReader="$(TelerikForceZeroDepsMetadataReader)">
                <Output TaskParameter="TelerikRuntimeLicense" ItemName="GeneratedCompile" />
                <Output TaskParameter="TelerikRuntimeLicense" ItemName="FileWrites" />
            </ResolveTelerikProducts>
    
            <ItemGroup Condition="'$(DotNetWatchBuild)' != 'true'">
                <PostGeneratedCompile Include="@(Compile)" />
                <Compile Remove="@(Compile)" />
                <Compile Include="@(GeneratedCompile);@(PostGeneratedCompile)" />
            </ItemGroup>
        </Target>
    </Project>
  2. After that, run:
    dotnet build
    dotnet watch

Regards,
Hristian Stefanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Licensing
Asked by
Telerik Admin
Top achievements
Rank 1
Iron
Answers by
Hristian Stefanov
Telerik team
Share this question
or