Skip to content

Too many duplicate xxx.runtimeconfig.json #91238

Closed
@szilvaa-adsk

Description

@szilvaa-adsk

Our application consists of many dlls several of which are "mixed mode" (C++/CLI). With .net8 we must ship a .runtimeconfig.json file for each mixed mode assembly otherwise the runtime refuses to load them. This seems unnecessary. Our application logic ensures that the runtime is already loaded by the time these assemblies are loaded.
It would be nice to have a mechanism to avoid having to ship a dozen identical .runtimeconfig.json files.

The following commit demonstrates how this could be done by modifying ijwhost.dll.
https://github.com/dotnet/runtime/compare/v8.0.0-preview.7.23375.6...szilvaa-adsk:runtime:default_runtimeconfig?expand=1

I'm happy to code-up a more industrial-strength solution after some discussion/guidance from others.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions