public static MvsSln.Core.ProjectItem GetProjectItem(this DProject prj, IXProjectEnv env) { return(new MvsSln.Core.ProjectItem ( prj.GetProjectGuid(), prj.GetProjectName(env), FileExt.GetProjectTypeByFile(prj.FullName) ) { fullPath = prj.FullName }); }
public static IDictionary <string, string> GetProjectProperties(this DProject prj, IXProjectEnv env = null) { var p = env == null ? new Dictionary <string, string>() : new Dictionary <string, string>(env.Sln.Properties) { [PropertyNames.CONFIG] = prj.GetActiveConfig(), [PropertyNames.PLATFORM] = prj.GetActivePlatform(), [PropertyNames.PRJ_GUID] = prj.GetProjectGuid(), [PropertyNames.VS_BUILD] = "true", }; if (!p.ContainsKey(PropertyNames.CODE_ANAL_ORUN)) { p[PropertyNames.CODE_ANAL_ORUN] = "false"; } if (!p.ContainsKey(PropertyNames.DEVENV_DIR)) { p[PropertyNames.DEVENV_DIR] = "".GetDevEnvDir(); } return(p); }