-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Copy runtimeOptions from project.json into runtimeconfig.json #5501
Comments
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? |
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 Remove it for publish, right? |
yeah, but specify it to false for build also right? |
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? |
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. |
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 |
We will copy over the properties from project.json runtimeoptions to runtimeoptions of runtimeconfig.json, including additionalprobingpath and rollforward. |
@livarcocc When do you expect to have this resolved? |
I intend to sent it out for PR tomorrow. |
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.
The text was updated successfully, but these errors were encountered: