public DnxExecutionTarget(string command, DnxFramework framework)
 {
     Command = command;
     Framework = framework;
     name = GenerateName ();
     id = GenerateId (command, framework.ShortName);
 }
Пример #2
0
        public void UpdateReferences(DnxFramework framework)
        {
            if (framework.Name == CurrentFramework)
                return;

            CurrentFramework = framework.Name;

            RefreshPreprocessorSymbols ();

            try {
                addingReferences = true;
                RemoveExistingReferences ();
                RefreshReferences ();
                RefreshProjectReferences ();
            } finally {
                addingReferences = false;
            }
        }
Пример #3
0
        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;
        }
Пример #4
0
 public FilePath GetRuntimePath(DnxFramework framework)
 {
     string runtime = framework.GetDnxRuntime ();
     string modifiedFileName = Path.FileName.Replace ("-clr-", "-" + runtime + "-");
     return Path.ParentDirectory.Combine (modifiedFileName);
 }
Пример #5
0
 public FilePath GetRuntimePath(DnxFramework framework)
 {
     string modifiedFileName = GetModifiedRuntimeFileName (Path.FileName, framework);
     return Path.ParentDirectory.Combine (modifiedFileName);
 }