Ejemplo n.º 1
0
        public static IXProject GetXProject(this DProject prj, IXProjectEnv env, bool tryLoad = true)
        {
            if (prj == null || env == null)
            {
                return(null);
            }

            var cfg = new ConfigItem(
                prj.GetActiveConfig(),
                prj.GetActivePlatform()
                );

            if (!tryLoad)
            {
                return(env.XProjectByFile(prj.FullName, cfg, false));
            }

            // similar problems -MS Connect Issue #508628:
            // http://connect.microsoft.com/VisualStudio/feedback/details/508628/

            return(env.XProjectByFile(prj.FullName, cfg, prj.GetProjectProperties(env)));
        }