public Dictionary<string, string> GetCommonProperties() { return SelectElements("/ms:Project/ms:PropertyGroup[not(@Condition)]") .SelectMany(group => group.Elements()) .ToDictionary(node => node.Name.LocalName, node => node.Value); }