Skip to content

PublishReadyToRunComposite and PublishSingleFile are making app crash #55747

Closed
@hez2010

Description

@hez2010

Description

If an app is published with both PublishReadyToRunComposite and PublishSingleFile enabled, the app will crash at startup in silence.

Repro steps:

dotnet new console
dotnet publish -c Release -r win-x64 /p:PublishReadyToRun=true /p:PublishReadyToRunComposite=true /p:PublishSingleFile=true

And run the published single-file app, you will find the app is crashing at startup.

I guess it may be caused by the .r2r.dll file lookup failure.

Configuration

.NET 6 Preview 6

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions