We found out that the changes to the Garbage Collection don't require rebuilding the 
Nop.Web project. It is possible to edit the 
Nop.Web.runtimeconfig.json file in the root folder of nopCommerce and change the 
"System.GC.Server" property to 
false. The file should look like this: 
			 
			
{
  "runtimeOptions": {
    "tfm": "netcoreapp2.1",
    "framework": {
      "name": "Microsoft.NETCore.App",
      "version": "2.1.0"
    },
    "configProperties": {
      "System.GC.Server": false
    }
  }
}