in src/dotnet/ReSharperPlugin.DotNetDisassembler/JitDisasm/LoaderAppManager.cs [15:26]
private static async Task<string> GetPathToLoaderAsync(string dotnetCliExePath, string tf, Version addinVersion, CancellationToken ct)
{
ProcessResult dotnetVersion = await ProcessUtils.RunProcessAsync(dotnetCliExePath, "--version", cancellationToken: ct);
string version = dotnetVersion.Output.Trim();
if (!char.IsDigit(version[0]))
{
// Something went wrong, use a random to proceed
version = Guid.NewGuid().ToString("N");
}
string folderName = $"{addinVersion}_{tf}_{version}";
return Path.Combine(Path.GetTempPath(), JitDisasmLoaderName, folderName);
}