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
Correct way to enable Server GC in RC2? #1237
Comments
@ajaybhargavb @piotrpMSFT Here is what I see in our RC2 templates: "runtimeOptions": {
"gcServer": true
} When you say that the above doesn't work for you can you clarify what exactly you are seeing? How are you detecting whether server GC is being used? |
I have this code: if (GCSettings.IsServerGC)
{
Console.WriteLine("Server GC");
}
else
{
Console.WriteLine("Workstation GC");
} It prints out "Workstation GC" when I use |
A related issue: https://github.com/dotnet/cli/issues/2121 |
@danroth27, I think the structure of |
@sayedihashimi @phenning @ajaybhargavb @piotrpMSFT @rachelappel So what we have in the templates for RC2 is incorrect? The JSON schema also appears to be incorrect: |
The runtime team owns the schema, and I think it can be updated on the fly. |
@sayedihashimi @barrytang This is more than just a schema issue. It looks like what we have in our template project.json files is wrong. |
I'm a bit lost. Is this valid also for webjobs (console apps) targeting net461? |
No, for console apps target the full .NET Framework you would need to enable server GC in app.config. |
The migration guide suggests something like the following, which seems from aspnet/Announcements#175
However, when I tried on RC2, it doesn't work for me. I had to use the code below
The text was updated successfully, but these errors were encountered: