in src/dotnet/ReSharperPlugin.DotNetDisassembler/JitDisasm/JitPathUtils.cs [65:84]
public static Result<string> GetPathToCoreClrCheckedForNativeAot(string pathToLocalCoreClr, string arch)
{
var releaseFolder = Path.Combine(pathToLocalCoreClr, "artifacts", "bin", "coreclr", $"windows.{arch}.Checked");
if (!Directory.Exists(releaseFolder) || !Directory.Exists(Path.Combine(releaseFolder, "aotsdk")) ||
!Directory.Exists(Path.Combine(releaseFolder, "ilc")))
{
var msg =
$"""
Path to a local dotnet/runtime repository is either not set or it's not correctly built for {arch} arch yet for NativeAOT
Please clone it and build it using the following steps.:
git clone git@github.com:dotnet/runtime.git
cd runtime
build.cmd Clr+Clr.Aot+Libs -c Release -rc Checked -a {arch}
""";
return Result.Fail(msg);
}
return Result.Success(releaseFolder);
}