Repository navigation
Support setting Server GC and other properties from runtimeconfig.json via MSBuild properties - #746
Conversation
|
I don't think we'll get this past ship room so it'll probably have to go in future. |
There was a problem hiding this comment.
I like the feature and the code but it doesn't meet the RTW bar IMHO.
Note that you need to fill out the template (see other recent PRs) and tag Matt Gertz for approval to bring to ship room then wait for approval to merge.
If it gets rejected, ship it in future.
|
@davidfowl @mlorbetske @DamianEdwards - if you guys want me to push for this in "1.0", let me know. But if you don't want/need it, I can just push it to "future". |
|
@eerhardt I'd like us to push for this in 1.0, thanks. |
|
@MattGertz for approval Scenario ASP.NET projects want Server Garbage Collection turned on by default. The only way to do this today is to add a new file Instead, this allows the setting to be controlled by an MSBuild property. The Web.Sdk could default "Server Garbage Collection" to on without affecting the user's project or templates at all. Or the ASP.NET team can add the single MSBuild property into the web template. However, they choose to take advantage of this feature. Either way, the developer still has full control, and can turn the property back off, if they don't want server garbage collection. Bug Workarounds The workaround is to add a runtimeconfig.template.json file to the project that looks like: {
"configProperties": {
"System.GC.Concurrent": true
}
} Risk Low - new functionality with no change to existing functionality Performance Impact For build time, no impact. Regression Analysis Not a regression |
|
Does this only modify the |
This is only for .NET Core applications. Full framework applications can still set the property in the App.config/Web.config. A future enhancement could take these properties and set the values in the app/web.config. |
|
Sri/JoC/I are discussing. |
|
Talked to JoC; OK to bring to Shiproom. Cost/risk will be the discussion there. |
|
@ |
|
@MattGertz - I don't have an invite for shiproom. Let me know if there is anything for me to do, or send me the invite if you want me to attend. |
|
No worries, Sri usually speaks for SDK, and John's already aware of the existence of this one anyway now. |
|
Approved to merge via 377254 and pending one more review |
|
Thanks Eric! |
Update the master branding to Preview8
@nguerrera @dsplaisted @srivatsn
/cc @davidfowl @mlorbetske @DamianEdwards
With this change the Web.Sdk can default
<ServerGarbageCollection>true</ServerGarbageCollection>in their .props file, and server GC will be turned on for .NET Core apps.Fix #474