Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ public async Task<Result<JitCodeGenResult, Error>> GetJitCodegenAsync(DisasmTarg
clrCheckedFilesDir = result.Value;
}

var resultOutDir = Path.Combine(projectContext.OutputPath!,
"DotNetDisassembler" + (configuration.UseDotnetPublishForReload ? "_published" : ""), tfm.UniqueString);
var resultOutDir = configuration.UseDotnetPublishForReload
? Path.Combine(projectContext.OutputPath!, "DotNetDisassembler_published", tfm.UniqueString, runtimeId)
: Path.Combine(projectContext.OutputPath!, "DotNetDisassembler", tfm.UniqueString);

var dotnetCliExePath = projectContext.DotNetCliExePath!;
var projectFilePath = projectContext.ProjectFilePath!;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,17 @@ public static DisasmTarget GetTarget(IDeclaredElement declaredElement)
methodName = "*";
hostType = containingType.ShortName;
break;
case IConstructor:
target = prefix + ":.ctor";
methodName = "*";
case IConstructor constructor:
if (constructor.IsStatic)
{
target = prefix + ":.cctor";
methodName = ".cctor";
}
else
{
target = prefix + ":.ctor";
methodName = "*";
}
hostType = containingType.ShortName;
break;
case IFunction function:
Expand Down