53 references to Constants
Microsoft.Build (29)
Construction\Solution\SolutionProjectGenerator.cs (4)
26
using Constants = Microsoft.Build.Internal.
Constants
;
395
wrapperProjectToolsVersion =
Constants
.defaultSolutionWrapperProjectToolsVersion;
1115
directProjectProperties = String.Format(CultureInfo.InvariantCulture, "{0}; {1}={2}", directProjectProperties,
Constants
.SubToolsetVersionPropertyName, traversalProject.SubToolsetVersion);
2088
properties[
Constants
.SubToolsetVersionPropertyName] = traversalProject.SubToolsetVersion;
Definition\Project.cs (2)
26
using Constants = Microsoft.Build.Internal.
Constants
;
3781
if (String.Equals(pair.Key,
Constants
.SubToolsetVersionPropertyName, StringComparison.OrdinalIgnoreCase) && subToolsetVersion != null)
Definition\ProjectCollection.cs (1)
487
var fullInformationalVersion = typeof(
Constants
).GetTypeInfo().Assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>().InformationalVersion;
Definition\Toolset.cs (7)
484
return
Constants
.Dev10SubToolsetValue;
754
ProjectPropertyInstance subToolsetProperty = overrideGlobalProperties[
Constants
.SubToolsetVersionPropertyName];
786
ProjectPropertyInstance visualStudioVersionProperty = _globalProperties[
Constants
.SubToolsetVersionPropertyName];
797
ProjectPropertyInstance visualStudioVersionProperty = _environmentProperties[
Constants
.SubToolsetVersionPropertyName];
836
if (overrideGlobalProperties != null && overrideGlobalProperties.TryGetValue(
Constants
.SubToolsetVersionPropertyName, out visualStudioVersion))
908
reservedProperties.Add(ProjectPropertyInstance.Create(ReservedPropertyNames.assemblyVersion,
Constants
.AssemblyVersion, mayBeReserved: true));
954
propertyBag.Set(ProjectPropertyInstance.Create(
Constants
.SubToolsetVersionPropertyName, subToolsetVersion));
Definition\ToolsetReader.cs (4)
299
defaultToolsVersion =
Constants
.defaultToolsVersion;
302
if (toolsets.ContainsKey(
Constants
.defaultToolsVersion))
310
Constants
.defaultToolsVersion == "2.0",
319
defaultToolsVersion =
Constants
.defaultFallbackToolsVersion;
Evaluation\Evaluator.cs (8)
30
using Constants = Microsoft.Build.Internal.
Constants
;
1136
SetBuiltInProperty(ReservedPropertyNames.assemblyVersion,
Constants
.AssemblyVersion);
1217
if (!_data.Properties.Contains(
Constants
.VisualStudioVersionPropertyName))
1219
_data.SetProperty(
Constants
.VisualStudioVersionPropertyName, MSBuildConstants.CurrentVisualStudioVersion, false /* NOT global property */, false /* may NOT be a reserved name */, loggingContext: _evaluationLoggingContext);
1227
if (!_data.Properties.Contains(
Constants
.SubToolsetVersionPropertyName))
1229
_data.SetProperty(
Constants
.SubToolsetVersionPropertyName, _data.SubToolsetVersion, false /* NOT global property */, false /* may NOT be a reserved name */, loggingContext: _evaluationLoggingContext);
2565
P oldValue = _data.GetProperty(
Constants
.MSBuildAllProjectsPropertyName);
2568
Constants
.MSBuildAllProjectsPropertyName,
Instance\ProjectInstance.cs (2)
2650
defaultToolsVersion:
Constants
.defaultSolutionWrapperProjectToolsVersion,
3148
if (String.Equals(globalProperty.Key,
Constants
.SubToolsetVersionPropertyName, StringComparison.OrdinalIgnoreCase) && explicitSubToolsetVersion != null)
Resources\MSBuildAssemblyFileVersion.cs (1)
49
version = Version.Parse(
Constants
.AssemblyVersion);
Microsoft.Build.Engine.UnitTests (24)
BackEnd\CacheSerialization_Tests.cs (6)
27
new BuildRequestData("path1", new Dictionary<string, string> { ["a1"] = "b1" },
Constants
.defaultToolsVersion, new[] { "target1", "target2" }, null),
28
Constants
.defaultToolsVersion);
32
new BuildRequestData("path2", new Dictionary<string, string> { ["a2"] = "b2" },
Constants
.defaultToolsVersion, new[] { "target2" }, null),
33
Constants
.defaultToolsVersion);
36
new BuildRequestData("path3", new Dictionary<string, string> { ["a3"] = "b3" },
Constants
.defaultToolsVersion, new[] { "target3" }, null),
37
Constants
.defaultToolsVersion);
BackEnd\ConfigCache_Tests.cs (12)
27
new BuildRequestData("path1", new Dictionary<string, string> { ["a1"] = "b1" },
Constants
.defaultToolsVersion, new[] { "target1" }, null),
28
Constants
.defaultToolsVersion);
37
new BuildRequestData("path2", new Dictionary<string, string> { ["a2"] = "b2" },
Constants
.defaultToolsVersion, new[] { "target2" }, null),
38
Constants
.defaultToolsVersion);
46
new BuildRequestData("path3", new Dictionary<string, string> { ["a3"] = "b3" },
Constants
.defaultToolsVersion, new[] { "target3" }, null),
47
Constants
.defaultToolsVersion);
74
new BuildRequestData("path1", new Dictionary<string, string> { ["a1"] = "b1" },
Constants
.defaultToolsVersion, new[] { "target1" }, null),
75
Constants
.defaultToolsVersion);
78
new BuildRequestData("path2", new Dictionary<string, string> { ["a2"] = "b2" },
Constants
.defaultToolsVersion, new[] { "target2" }, null),
79
Constants
.defaultToolsVersion);
82
new BuildRequestData("path3", new Dictionary<string, string> { ["a3"] = "b3" },
Constants
.defaultToolsVersion, new[] { "target3" }, null),
83
Constants
.defaultToolsVersion);
Definition\Toolset_Tests.cs (3)
178
Assert.Equal(
Constants
.Dev10SubToolsetValue, t.DefaultSubToolsetVersion);
205
Assert.Equal(
Constants
.Dev10SubToolsetValue, t.DefaultSubToolsetVersion);
241
Assert.Equal(
Constants
.Dev10SubToolsetValue, subToolsetVersion);
Evaluation\Evaluator_Tests.cs (3)
4336
string actual = project.GetPropertyValue(
Constants
.VisualStudioVersionPropertyName);
4640
string propertyValue = project.GetPropertyValue(
Constants
.MSBuildAllProjectsPropertyName);
4670
project.GetPropertyValue(
Constants
.MSBuildAllProjectsPropertyName).ShouldStartWith(primaryProject.ProjectFile);