我需要一个解决方案来为我提供完整框架和.NET核心的.NET运行时版本。
在具有以下.NET版本的计算机上:
Full: 4.7.2
Core: 2.1.104
运行:
RuntimeInformation.FrameworkDescription
给了我:
Full: .NET Framework 4.7.2558.0
Core: .NET Core 4.6.26212.01
运行:
Environment.Version
给了我:
Full: 4.0.30319.42000
Core: 4.0.30319.42000
知道注册表选项在Windows之外不可用,我如何才能准确地获取跨不同平台的运行时版本。
https://stackoverflow.com/questions/49750769
复制相似问题