If server garbage collection is not enabled, workstation garbage collection is in effect (with or without concurrent collection).
However...
dotnet new web -o web
cd web
dotnet build
Get-Content .\bin\Debug\net6.0\*runtime*.json | Select-String -Pattern GC
...shows...
"System.GC.Server": true,
FWIW, in my dotnet core 3.1 project, editing the csproj to set ServerGarbageCollection to false, does result in both "System.GC.Server": false, in the generated runtime json file and gives the expected result in System.Runtime.GCSettings.IsServerGC during runtime.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
ID: 484737e7-abb8-c142-35f8-22a35817270d
Version Independent ID: 9e412677-c511-9f5b-4654-95e0177c7dd4
From this article...
Seems to be contradicted by this...
Which this answer supports...
However...
...shows...
"System.GC.Server": true
,FWIW, in my dotnet core 3.1 project, editing the csproj to set ServerGarbageCollection to false, does result in both
"System.GC.Server": false,
in the generated runtime json file and gives the expected result inSystem.Runtime.GCSettings.IsServerGC
during runtime.Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.