Beispiel #1
0
        /// <summary>
        /// Gets the cli mode.
        /// </summary>
        /// <param name="project">The project.</param>
        /// <returns></returns>
        public static CppCliMode GetCLIMode(this Project project)
        {
            VCppProjectCLIParameters cliParameters =
                project.GetInheritableParameters <VCppProjectCLIParameters, VCppProjectCLIParametersDef>("cli");

            return(cliParameters.IsModeSpecified ? cliParameters.Mode : CppCliMode.Disabled);
        }
Beispiel #2
0
        private CppCliMode GetCLIMode(Project project)
        {
            VCppProjectCLIParameters cliParameters = project.HasParameters("cli")
                ? project.GetParameters <VCppProjectCLIParameters>("cli")
                : new VCppProjectCLIParameters();

            return(cliParameters.Mode);
        }