On .NET Framework we could use the TotalPhysicalMemory property from the ComputerInfo class like the code snippet below:
var totalPhysicalMemory = new Microsoft.VisualBasic.Devices.ComputerInfo().TotalPhysicalMemory;
I saw there was an API Proposal for this feature but don't think it is out yet.
Is there a work around for this .NET Core or maybe something that I might have missed out?