追风

Results 2 issues of 追风

vs2012可以正常打开访问,如果不可以怎么解决

if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) { OS = OSPlatform.OSX.ToString(); TotalPhysicalMemory = PlatformForLinux.MemInfo("MemTotal:"); FreePhysicalMemory = PlatformForLinux.MemInfo("MemAvailable:"); LogicalDisk = PlatformForLinux.LogicalDisk(); ProcessorName = PlatformForLinux.CpuInfo("model name"); TickCount = PlatformForLinux.RunTime(); } 执行了了PlatformForLinux.MemInfo("MemTotal:");便报异常:Object reference not set to an instance...