示例#1
0
        private static string GetRuntime()
        {
            var currentRuntime = RuntimeInformation.GetDotNetCliRuntimeIdentifier();

            if (!string.IsNullOrEmpty(currentRuntime))
            {
                return($"\"runtimes\": {{ \"{currentRuntime}\": {{ }} }},");
            }

            return(string.Empty);
        }