internal protected virtual void Read (IMSBuildEvaluatedPropertyCollection pset, string toolsVersion) { evaluatedProperties = pset; intermediateOutputDirectory = pset.GetPathValue ("IntermediateOutputPath"); outputDirectory = pset.GetPathValue ("OutputPath", defaultValue:"." + Path.DirectorySeparatorChar); debugMode = pset.GetValue<bool> ("DebugSymbols", false); pauseConsoleOutput = pset.GetValue ("ConsolePause", true); externalConsole = pset.GetValue<bool> ("ExternalConsole"); commandLineParameters = pset.GetValue ("Commandlineparameters", ""); runWithWarnings = pset.GetValue ("RunWithWarnings", true); // Special case: when DebugType=none, xbuild returns an empty string debugType = pset.GetValue ("DebugType"); if (string.IsNullOrEmpty (debugType)) { debugType = "none"; debugTypeReadAsEmpty = true; } debugTypeWasNone = debugType == "none"; var svars = pset.GetValue ("EnvironmentVariables"); ParseEnvironmentVariables (svars, environmentVariables); // Kep a clone of the loaded env vars, so we can check if they have changed when saving loadedEnvironmentVariables = new Dictionary<string, string> (environmentVariables); pset.ReadObjectProperties (this, GetType (), true); }
internal protected virtual void Read(IMSBuildEvaluatedPropertyCollection pset, string toolsVersion) { evaluatedProperties = pset; intermediateOutputDirectory = pset.GetPathValue("IntermediateOutputPath"); outputDirectory = pset.GetPathValue("OutputPath", defaultValue: "." + Path.DirectorySeparatorChar); debugMode = pset.GetValue <bool> ("DebugSymbols", false); pauseConsoleOutput = pset.GetValue("ConsolePause", true); externalConsole = pset.GetValue <bool> ("ExternalConsole"); commandLineParameters = pset.GetValue("Commandlineparameters", ""); runWithWarnings = pset.GetValue("RunWithWarnings", true); // Special case: when DebugType=none, xbuild returns an empty string debugType = pset.GetValue("DebugType"); if (string.IsNullOrEmpty(debugType)) { debugType = "none"; debugTypeReadAsEmpty = true; } debugTypeWasNone = debugType == "none"; var svars = pset.GetValue("EnvironmentVariables"); ParseEnvironmentVariables(svars, environmentVariables); // Kep a clone of the loaded env vars, so we can check if they have changed when saving loadedEnvironmentVariables = new Dictionary <string, string> (environmentVariables); pset.ReadObjectProperties(this, GetType(), true); }
internal protected virtual void Read (IMSBuildEvaluatedPropertyCollection pset, string toolsVersion) { pset.ReadObjectProperties (this, GetType (), true); }
internal protected virtual void Read(IMSBuildEvaluatedPropertyCollection pset, string toolsVersion) { pset.ReadObjectProperties(this, GetType(), true); }