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