Skip to content

[MulticoreJIT] Single file deployment does not support ProfileOptimization #108270

Open
@FixBo

Description

@FixBo

Create app with profile enable

ProfileOptimization.SetProfileRoot(AppDomain.CurrentDomain.BaseDirectory);
ProfileOptimization.StartProfile("profile");

Publish as selfcontained single file

dotnet publish --sc -p:PublishSingleFile=true

Run application

The "profile" is created with a size of only 64 bytes

According to my research, it's because of this check

if (pPEAssembly->GetPath().IsEmpty()) // Ignore in-memory modules

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions