33 references to AddProperty
installer.tasks (2)
GenerateFileVersionProps.cs (2)
152propertyGroup.AddProperty(PreferredPackagesProperty, PreferredPackages); 155propertyGroup.AddProperty(versionPropertyName, PackageVersion);
Microsoft.Build (15)
Construction\ProjectPropertyGroupElement.cs (1)
90return AddProperty(name, unevaluatedValue);
Construction\ProjectRootElement.cs (1)
1205ProjectPropertyElement newProperty = matchingPropertyGroup.AddProperty(name, value);
Construction\Solution\SolutionProjectGenerator.cs (12)
244solutionConfigurationProperties.AddProperty("CurrentSolutionConfigurationContents", escapedSolutionConfigurationContents); 2229configurationDefaultingPropertyGroup.AddProperty("Configuration", EscapingUtilities.Escape(_solutionFile.GetDefaultConfigurationName())); 2235platformDefaultingPropertyGroup.AddProperty("Platform", EscapingUtilities.Escape(_solutionFile.GetDefaultPlatformName())); 2263venusConfiguration.AddProperty("AspNetConfiguration", "$(Configuration)"); 2280globalProperties.AddProperty("SolutionDir", EscapingUtilities.Escape(directoryName)); 2281globalProperties.AddProperty("SolutionExt", EscapingUtilities.Escape(Path.GetExtension(_solutionFile.FullPath))); 2282globalProperties.AddProperty("SolutionFileName", EscapingUtilities.Escape(Path.GetFileName(_solutionFile.FullPath))); 2283globalProperties.AddProperty("SolutionName", EscapingUtilities.Escape(Path.GetFileNameWithoutExtension(_solutionFile.FullPath))); 2285globalProperties.AddProperty(SolutionPathPropertyName, EscapingUtilities.Escape(Path.Combine(_solutionFile.SolutionFileDirectory, Path.GetFileName(_solutionFile.FullPath)))); 2296ProjectPropertyElement tfv20Property = frameworkVersionProperties.AddProperty("TargetFrameworkVersion", "v2.0"); 2297ProjectPropertyElement tfv35Property = frameworkVersionProperties.AddProperty("TargetFrameworkVersion", "v3.5"); 2298ProjectPropertyElement tfv40Property = frameworkVersionProperties.AddProperty("TargetFrameworkVersion", "v4.0");
Evaluation\Evaluator.cs (1)
1928propertyGroup.AddProperty(propertyNameAndValue.Key, EscapingUtilities.Escape(propertyNameAndValue.Value));
Microsoft.Build.Engine.OM.UnitTests (16)
Construction\ConstructionEditing_Tests.cs (2)
2852var element = ProjectRootElement.Create().AddTarget("t").AddPropertyGroup().AddProperty("p", "v1"); 3184var element = ProjectRootElement.Create().AddTarget("t").AddPropertyGroup().AddProperty("p", "v1");
Construction\ProjectPropertyGroupElement_Tests.cs (2)
115propertyGroup.AddProperty("p", "v1"); 116propertyGroup.AddProperty("p", "v2");
Construction\ProjectRootElement_Tests.cs (2)
1164pg.AddProperty("a", "$(b)"); 1165pg.AddProperty("c", string.Empty);
Definition\Project_Tests.cs (7)
3899pre.AddPropertyGroup().AddProperty("NotUsed", ""); 3937pre.AddPropertyGroup().AddProperty("NotUsed", ""); 3981pre.AddPropertyGroup().AddProperty("NotUsed", ""); 4028pre.AddPropertyGroup().AddProperty("NotUsed", ""); 4109pre.AddPropertyGroup().AddProperty("NotUsed", ""); 4152pre.AddPropertyGroup().AddProperty("NotUsed", ""); 4205pre2.AddPropertyGroup().AddProperty("NotUsed", "");
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (3)
717var prop = propGrp.AddNewChaildWithVerify<ProjectPropertyElement>(ObjectType.View, "prop", (pg, n) => pg.AddProperty(n, $"value{n}"), (p, n) => p.Name == n); 734propGrp.Add2NewChildrenWithVerify<ProjectPropertyElement>("prop", (pg, n) => pg.AddProperty(n, $"value{n}"), (p, n) => p.Name == n, out var prop1, out var prop2); 742propGrp.Add2NewChildrenWithVerify<ProjectPropertyElement>("prop" /*same name*/, (pg, n) => pg.AddProperty(n, $"value2{n}"), (p, n) => p.Value == $"value2{n}", out var prop1_2, out var prop2_2);