You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
That's surprising, it shares the same csproj generator as the other toolchains. I don't think we need a separate issue, if you want to send a PR and link it to your comment here.
If I add RuntimeHostConfigurationOption to the benchmark project like this:
The built project will have this added to [appname].runtimeconfig.json:
This is important to be able to deal with this breaking change in .NET 8:
https://learn.microsoft.com/en-us/dotnet/core/compatibility/deployment/8.0/rid-asset-list#recommended-action
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
BenchmarkDotNet/src/BenchmarkDotNet/Toolchains/CsProj/CsProjGenerator.cs
Line 26 in ece5ccf
RuntimeHostConfigurationOption
added, and also a way to make sureruntimeconfig.template.json
files are copied as well.The text was updated successfully, but these errors were encountered: