MSB4216: Could not run the "ResolveTelerikProducts" task after upgrading to .NET SDK 9.0.307

1 Answer 355 Views
General Discussions Licensing
Ricardo
Top achievements
Rank 1
Ricardo asked on 11 Nov 2025, 07:51 PM

My pipeline is currently stuck due to this, I have a simple "dotnet install" in my pipeline that used to work and since the latest .NET SDK release (SDK 9.0.307) it started to fail with the following message:

  • C:\Users\?????\.nuget\packages\telerik.licensing\1.4.10\build\Telerik.Licensing.targets(8,3): error MSB4216: Could not run the "ResolveTelerikProducts" task because MSBuild could not create or connect to a task host with runtime "NET" and architecture "x64". Please ensure that (1) the requested runtime and/or architecture are available on the machine, and (2) that the required executable "C:\Program Files\dotnet\sdk\9.0.307\MSBuild.dll" exists and can be run.

I attempted to upgrade the Telerik.Licensing package manually to latest version but it didn't fix the issue.

Aaron
Top achievements
Rank 1
Veteran
commented on 12 Nov 2025, 12:31 AM | edited

Same problem here, and I'm guessing it's the same as whatever is going on here: Error reporting while Creating Build throught GIT-Hub CI Process in Kendo UI for jQuery | Telerik Forums

Kevin Robertson
Top achievements
Rank 1
commented on 12 Nov 2025, 01:06 AM

Same problem.
error MSB4216: Could not run the "ResolveTelerikProducts" task because MSBuild could not create or connect to a task host with runtime "NET" and architecture "x64".

However, I don't get the error if I publish via VS2022.
But if I execute the following command, I get the above error.

 dotnet publish ..\UiWebBlazor\Web\Web.csproj --output Publish\UiWeb -c Debug -r linux-arm64 --self-contained false

Aaron
Top achievements
Rank 1
Veteran
commented on 12 Nov 2025, 01:15 AM

Pinning to 9.0.306 (instead of 9.0.307 that was just released today) seems to have at least worked around the issue for now.

Add global.json with the following:

{
  "sdk": {
    "version": "9.0.306"
  }
}
Tony
Top achievements
Rank 1
commented on 12 Nov 2025, 03:11 AM

I have the same issue that started today. 
Martijn
Top achievements
Rank 1
commented on 12 Nov 2025, 08:55 AM | edited

We have the same issue for Telerik UI for ASP.NET Core. the workaround with global.json works!

Ricardo
Top achievements
Rank 1
commented on 12 Nov 2025, 01:10 PM

Confirmed here too, pinning 9.0.306 in global.json work-around works

1 Answer, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 12 Nov 2025, 01:25 PM | edited on 13 Nov 2025, 08:40 AM

Hello everyone,

The issue started appearing on 11.11.2025 with the release of the new .NET SDK version 9.0.307. It has been logged in Microsoft's dotnet Github repo: SDK-9.0.307: Could not run the "ReplaceTokenInFileTask" task on Windows runners #12751

As Aaron mentioned, specifying 9.0.306 in the global.json file is the known workaround. Using .NET 10 is also an option.

{
  "sdk": {
    "version": "9.0.306",
    "rollForward": "disable"
  }
}

 

Regards,
Ivan Danchev
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.

Adam
Top achievements
Rank 1
commented on 14 Nov 2025, 07:31 AM

Thanks for the workaround. When will a proper fix be released please?
Tags
General Discussions Licensing
Asked by
Ricardo
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Share this question
or