public DnxExecutionTarget(string command, DnxFramework framework) { Command = command; Framework = framework; name = GenerateName (); id = GenerateId (command, framework.ShortName); }
public void UpdateReferences(DnxFramework framework) { if (framework.Name == CurrentFramework) return; CurrentFramework = framework.Name; RefreshPreprocessorSymbols (); try { addingReferences = true; RemoveExistingReferences (); RefreshReferences (); RefreshProjectReferences (); } finally { addingReferences = false; } }
static string GetModifiedRuntimeFileName(string fileName, DnxFramework framework) { if (framework.IsCoreClr ()) { if (Platform.IsWindows) { return fileName.Replace ("-clr-", "-coreclr-"); } else if (Platform.IsMac) { return fileName.Replace ("-mono", "-coreclr-darwin-x64"); } else if (Platform.IsLinux) { return fileName.Replace ("-mono", "-coreclr-linux-x64"); } } return fileName; }
public FilePath GetRuntimePath(DnxFramework framework) { string runtime = framework.GetDnxRuntime (); string modifiedFileName = Path.FileName.Replace ("-clr-", "-" + runtime + "-"); return Path.ParentDirectory.Combine (modifiedFileName); }
public FilePath GetRuntimePath(DnxFramework framework) { string modifiedFileName = GetModifiedRuntimeFileName (Path.FileName, framework); return Path.ParentDirectory.Combine (modifiedFileName); }