2015-11-16 19:21:57 +00:00
|
|
|
|
// Copyright (c) .NET Foundation and contributors. All rights reserved.
|
|
|
|
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
|
|
|
|
|
|
|
|
using System;
|
2015-10-06 17:46:43 +00:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Threading.Tasks;
|
2015-10-16 22:30:28 +00:00
|
|
|
|
using System.Runtime.InteropServices;
|
2015-10-06 17:46:43 +00:00
|
|
|
|
|
|
|
|
|
namespace Microsoft.DotNet.Cli.Utils
|
|
|
|
|
{
|
|
|
|
|
internal static class Constants
|
|
|
|
|
{
|
2015-12-11 03:01:40 +00:00
|
|
|
|
public static readonly string ProjectFileName = "project.json";
|
2015-10-21 22:21:14 +00:00
|
|
|
|
public static readonly string ExeSuffix = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? ".exe" : string.Empty;
|
2015-11-25 08:24:28 +00:00
|
|
|
|
|
|
|
|
|
// Priority order of runnable suffixes to look for and run
|
|
|
|
|
public static readonly string[] RunnableSuffixes = RuntimeInformation.IsOSPlatform(OSPlatform.Windows)
|
|
|
|
|
? new string[] { ".exe", ".cmd", ".bat" }
|
|
|
|
|
: new string[] { string.Empty };
|
|
|
|
|
|
2015-10-21 22:21:14 +00:00
|
|
|
|
public static readonly string HostExecutableName = "corehost" + ExeSuffix;
|
2015-10-13 21:31:29 +00:00
|
|
|
|
public static readonly string DefaultConfiguration = "Debug";
|
2015-10-15 19:56:07 +00:00
|
|
|
|
public static readonly string BinDirectoryName = "bin";
|
2015-10-19 04:07:48 +00:00
|
|
|
|
public static readonly string ObjDirectoryName = "obj";
|
2015-11-11 01:30:01 +00:00
|
|
|
|
|
|
|
|
|
public static readonly string LibCoreClrName = (RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "coreclr" : "libcoreclr") + DynamicLibSuffix;
|
|
|
|
|
|
2015-10-30 21:48:09 +00:00
|
|
|
|
public static readonly string DynamicLibSuffix = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? ".dll" :
|
|
|
|
|
RuntimeInformation.IsOSPlatform(OSPlatform.OSX) ? ".dylib" : ".so";
|
2015-10-29 19:03:01 +00:00
|
|
|
|
|
2015-11-28 08:28:45 +00:00
|
|
|
|
public static readonly string RuntimeIdentifier = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "win7-x64" :
|
|
|
|
|
RuntimeInformation.IsOSPlatform(OSPlatform.OSX) ? "osx.10.10-x64" : "ubuntu.14.04-x64";
|
|
|
|
|
|
2015-10-30 21:48:09 +00:00
|
|
|
|
public static readonly string StaticLibSuffix = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? ".lib" : ".a" ;
|
2015-10-06 17:46:43 +00:00
|
|
|
|
}
|
|
|
|
|
}
|