Ejemplo n.º 1
0
        public static bool IsConditionalOnFramework(this ProjectElement el, string framework)
        {
            string conditionStr;

            if (!TryGetFrameworkConditionString(framework, out conditionStr))
            {
                return(el.ConditionChain().Count == 0);
            }

            var condChain = el.ConditionChain();

            return(condChain.Count == 1 && condChain.First().Trim() == conditionStr);
        }
 public static bool ConditionChainsAreEquivalent(this ProjectElement projectElement, ProjectElement otherProjectElement)
 {
     return(projectElement.ConditionChain().SetEquals(otherProjectElement.ConditionChain()));
 }