Ejemplo n.º 1
0
        bool IsCurrentFramework(DnxExecutionTarget executionTarget)
        {
            if (executionTarget.IsDefaultProfile)
            {
                return(CurrentFramework == savedFileReferences.Keys.FirstOrDefault());
            }

            return(executionTarget.Framework.Name == CurrentFramework);
        }
Ejemplo n.º 2
0
        static IEnumerable <DnxExecutionTarget> GetDnxExecutionTargets(string command, IEnumerable <DnxFramework> frameworks)
        {
            yield return(DnxExecutionTarget.CreateDefaultTarget(command));

            foreach (DnxFramework framework in frameworks)
            {
                yield return(new DnxExecutionTarget(command, framework));
            }
        }
Ejemplo n.º 3
0
 void UpdateCurrentFramework(DnxExecutionTarget executionTarget)
 {
     if (executionTarget.IsDefaultProfile)
     {
         CurrentFramework = savedFileReferences.Keys.FirstOrDefault();
     }
     else
     {
         CurrentFramework = executionTarget.Framework.Name;
     }
 }
Ejemplo n.º 4
0
        public void UpdateReferences(DnxExecutionTarget executionTarget)
        {
            if (IsCurrentFramework(executionTarget))
            {
                return;
            }

            UpdateCurrentFramework(executionTarget);

            RefreshPreprocessorSymbols();

            try {
                addingReferences = true;
                RemoveExistingReferences();
                RefreshReferences();
                RefreshProjectReferences();
            } finally {
                addingReferences = false;
            }
        }
Ejemplo n.º 5
0
 void UpdateCurrentFramework(DnxExecutionTarget executionTarget)
 {
     if (executionTarget.IsDefaultProfile) {
         CurrentFramework = savedFileReferences.Keys.FirstOrDefault ();
     } else {
         CurrentFramework = executionTarget.Framework.Name;
     }
 }
Ejemplo n.º 6
0
        bool IsCurrentFramework(DnxExecutionTarget executionTarget)
        {
            if (executionTarget.IsDefaultProfile) {
                return CurrentFramework == savedFileReferences.Keys.FirstOrDefault ();
            }

            return executionTarget.Framework.Name == CurrentFramework;
        }
Ejemplo n.º 7
0
        public void UpdateReferences(DnxExecutionTarget executionTarget)
        {
            if (IsCurrentFramework (executionTarget))
                return;

            UpdateCurrentFramework (executionTarget);

            RefreshPreprocessorSymbols ();

            try {
                addingReferences = true;
                RemoveExistingReferences ();
                RefreshReferences ();
                RefreshProjectReferences ();
            } finally {
                addingReferences = false;
            }
        }