Open
Description
If I add RuntimeHostConfigurationOption to the benchmark project like this:
<ItemGroup>
<RuntimeHostConfigurationOption Include="System.Runtime.Loader.UseRidGraph" Value="true" />
</ItemGroup>
The built project will have this added to [appname].runtimeconfig.json:
{
"runtimeOptions": {
"configProperties": {
"System.Runtime.Loader.UseRidGraph": true
}
}
}
This is important to be able to deal with this breaking change in .NET 8:
However, the generated project does not copy this setting over, so the resulting project will not get the correct value injected into its runtimeconfig.json.
An alternative way is to add a runtimeconfig.template.json
file with the above json, but again, the generated project will not pick this up.
Perhaps
needsRuntimeHostConfigurationOption
added, and also a way to make sure runtimeconfig.template.json
files are copied as well.