Skip to content
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

Closed
livarcocc opened this issue Mar 29, 2016 · 10 comments
Closed

Copy runtimeOptions from project.json into runtimeconfig.json #5501

livarcocc opened this issue Mar 29, 2016 · 10 comments
Assignees
Milestone

Comments

@livarcocc
Copy link
Contributor

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 livarcocc self-assigned this Mar 29, 2016
@livarcocc
Copy link
Contributor Author

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?

@schellap
Copy link

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)

@livarcocc
Copy link
Contributor Author

@schellap Remove it for publish, right?

@schellap
Copy link

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

@livarcocc
Copy link
Contributor Author

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?

@schellap
Copy link

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
Copy link

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

@livarcocc
Copy link
Contributor Author

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

@gkhanna79
Copy link
Member

@livarcocc When do you expect to have this resolved?

@livarcocc
Copy link
Contributor Author

I intend to sent it out for PR tomorrow.

@msftgits msftgits transferred this issue from dotnet/cli Jan 31, 2020
@msftgits msftgits added this to the 1.0.0-rc2 milestone Jan 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants