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