NoSuchMethodError for DotnetCoreRuntime.getCliExePath

I’ve been making use of DotnetCoreRuntime.getCliExePath to determine how to invoke dotnet from my plugin.

var dotNetCoreRuntime = RiderDotNetActiveRuntimeHost.Companion.getInstance(project).getDotNetCoreRuntime().getValue();

if (dotNetCoreRuntime != null && dotNetCoreRuntime.getCliExePath() != null) {
    this.cliExePath = dotNetCoreRuntime.getCliExePath();
}

As of 2026.1.EAP this is failing with java.lang.NoSuchMethodError ‘java.lang.String com.jetbrains.rider.runtime.dotNetCore.DotNetCoreRuntime.getCliExePath()’

Is there a replacement for this method?

Additionally, how can I get my plugin to build/compile against the 2026.1 platform? I’ve tried various versions but none of them work. If I could compile against it I could possibly find a replacement method myself.

platformVersion = 2026.1-SNAPSHOT
platformVersion = 2026.1-EAP5
etc

The method has been replaced by getCliExePath() that returns a Path instead of String.
Unfortunately, this is an incompatible change.

Thanks, I was able to get this working using reflection to call the method and then examining the result to determine what to do with it.

In case anyone else wants to see the working code - csharpier/Src/CSharpier.Rider/src/main/java/com/intellij/csharpier/DotNetProvider.java at 03177035705d990738a7932fb0467a10b60d8617 · belav/csharpier · GitHub