Example #1
0
        protected override void OnReadConfiguration(ProgressMonitor monitor, ProjectConfiguration config, IMSBuildEvaluatedPropertyCollection pset)
        {
            base.OnReadConfiguration(monitor, config, pset);

            // Backwards compatibility. Move parameters to the project parameters object

            var prop = pset.GetProperty("ApplicationIcon");

            if (prop != null)
            {
                win32Icon = prop.GetPathValue();
            }

            prop = pset.GetProperty("Win32Resource");
            if (prop != null)
            {
                win32Resource = prop.GetPathValue();
            }

            prop = pset.GetProperty("StartupObject");
            if (prop != null)
            {
                mainclass = prop.Value;
            }

            prop = pset.GetProperty("CodePage");
            if (prop != null)
            {
                codePage = int.Parse(prop.Value);
            }
        }
        protected override void Read(IMSBuildEvaluatedPropertyCollection pset, string toolsVersion)
        {
            base.Read(pset, toolsVersion);

            var prop = pset.GetProperty("GenerateDocumentation");

            if (prop != null && documentationFile != null)
            {
                if (prop.GetValue <bool> ())
                {
                    documentationFile = ParentConfiguration.CompiledOutputName.ChangeExtension(".xml");
                }
                else
                {
                    documentationFile = null;
                }
            }

            optimize = pset.GetValue("Optimize", (bool?)null);
        }
		protected override void Read (IMSBuildEvaluatedPropertyCollection pset, string toolsVersion)
		{
			base.Read (pset, toolsVersion);

			var prop = pset.GetProperty ("GenerateDocumentation");
			if (prop != null && documentationFile != null) {
				if (prop.GetValue<bool> ())
					documentationFile = ParentConfiguration.CompiledOutputName.ChangeExtension (".xml");
				else
					documentationFile = null;
			}

			optimize = pset.GetValue ("Optimize", (bool?)null);
		}
		protected override void OnReadConfiguration (ProgressMonitor monitor, ProjectConfiguration config, IMSBuildEvaluatedPropertyCollection pset)
		{
			base.OnReadConfiguration (monitor, config, pset);

			// Backwards compatibility. Move parameters to the project parameters object

			var prop = pset.GetProperty ("ApplicationIcon");
			if (prop != null)
				win32Icon = prop.GetPathValue ();

			prop = pset.GetProperty ("Win32Resource");
			if (prop != null)
				win32Resource = prop.GetPathValue ();

			prop = pset.GetProperty ("StartupObject");
			if (prop != null)
				mainclass = prop.Value;

			prop = pset.GetProperty ("CodePage");
			if (prop != null)
				codePage = int.Parse (prop.Value);
		}