sdk icon indicating copy to clipboard operation
sdk copied to clipboard

Copy runtimeOptions from project.json into runtimeconfig.json

Open livarcocc opened this issue 10 years ago • 10 comments

Steps to reproduce

Adding the following lines to project.json has no effect on the content of the [app].runtimeconfig.json that is created in bin/Debug/…

"runtimeOptions": { "configProperties": { "System.GC.Server": true, "System.GC.Concurrent": true } }

Expected behavior

The runtimeOptions should show up at runtimeconfig.json.

Actual behavior

Runtimeoptions from project.json is not moved over.

livarcocc avatar Mar 29 '16 19:03 livarcocc

cc @anurse @schellap @gkhanna79 So, should we blindly move whatever is under runtimeoptions in the project.json to the runtimeoptions of runtimeconfig.json?

Do we have to do anything smart about it?

livarcocc avatar Mar 29 '16 19:03 livarcocc

That is correct. Except you should remove rollforward or probe paths etc, if specified based on the scenarios like build for example (yesterday's stuff)

schellap avatar Mar 29 '16 19:03 schellap

@schellap Remove it for publish, right?

livarcocc avatar Mar 29 '16 19:03 livarcocc

yeah, but specify it to false for build also right? you might want to add to the probe paths the nuget cache.

schellap avatar Mar 29 '16 19:03 schellap

For rollover you mean? If it is never true, why do we need it again? Also, if they do specify it and we will not honor it, should we warn or something like that?

livarcocc avatar Mar 29 '16 19:03 livarcocc

Basically, I am saying you might need to merge the config with the scenario. If they specified true, for build do you want to turn it off forcefully, and add .nuget cache to the probe list if they didn't specify. Stuff like that... basically the merge operation needs to be considered.

schellap avatar Mar 29 '16 19:03 schellap

We can get away with runtimeOptions.configProperties for now to enable ASP.NET. But how config in project.json merges with scenario can come for RTM.

https://github.com/dotnet/cli/blob/rel/1.0.0/Documentation/specs/runtime-configuration-file.md

schellap avatar Mar 29 '16 20:03 schellap

We will copy over the properties from project.json runtimeoptions to runtimeoptions of runtimeconfig.json, including additionalprobingpath and rollforward.

livarcocc avatar Mar 30 '16 20:03 livarcocc

@livarcocc When do you expect to have this resolved?

gkhanna79 avatar Apr 01 '16 06:04 gkhanna79

I intend to sent it out for PR tomorrow.

livarcocc avatar Apr 01 '16 06:04 livarcocc