79 references to ReservedPropertyNames
Microsoft.Build (74)
BackEnd\BuildManager\BuildManager.cs (1)
1287submission.BuildRequestData.ProjectInstance!.GetProperty(ReservedPropertyNames.projectDirectory)!.EvaluatedValue,
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
590_loggingService.LogComment(buildEventContext, MessageImportance.High, "ProjectCacheHitWithOutputs", buildRequest.ProjectInstance!.GetPropertyValue(ReservedPropertyNames.projectName));
BackEnd\Components\RequestBuilder\IntrinsicTasks\PropertyGroupIntrinsicTask.cs (2)
11using ReservedPropertyNames = Microsoft.Build.Internal.ReservedPropertyNames; 76!ReservedPropertyNames.IsReservedProperty(property.Name),
BackEnd\Components\RequestBuilder\Lookup.cs (2)
13using ReservedPropertyNames = Microsoft.Build.Internal.ReservedPropertyNames; 208if (String.Equals(property.Name, ReservedPropertyNames.lastTaskResult, StringComparison.OrdinalIgnoreCase))
BackEnd\Components\RequestBuilder\TaskBuilder.cs (2)
27using ReservedPropertyNames = Microsoft.Build.Internal.ReservedPropertyNames; 832bucket.Lookup.SetProperty(ProjectPropertyInstance.Create(ReservedPropertyNames.lastTaskResult, taskResult ? "true" : "false", true/* may be reserved */, _buildRequestEntry.RequestConfiguration.Project.IsImmutable));
Construction\ProjectPropertyElement.cs (1)
97ErrorUtilities.VerifyThrowInvalidOperation(!XMakeElements.ReservedItemNames.Contains(name) && !ReservedPropertyNames.IsReservedProperty(name), "OM_CannotCreateReservedProperty", name);
Definition\ProjectProperty.cs (3)
12using ReservedPropertyNames = Microsoft.Build.Internal.ReservedPropertyNames; 550ErrorUtilities.VerifyThrowArgument(mayBeReserved || !ReservedPropertyNames.IsReservedProperty(name), "OM_ReservedName", name); 636{ return ReservedPropertyNames.IsReservedProperty(Name); }
Definition\Toolset.cs (7)
25using ReservedPropertyNames = Microsoft.Build.Internal.ReservedPropertyNames; 904reservedProperties.Add(ProjectPropertyInstance.Create(ReservedPropertyNames.binPath, EscapingUtilities.Escape(ToolsPath), mayBeReserved: true)); 905reservedProperties.Add(ProjectPropertyInstance.Create(ReservedPropertyNames.toolsVersion, ToolsVersion, mayBeReserved: true)); 907reservedProperties.Add(ProjectPropertyInstance.Create(ReservedPropertyNames.toolsPath, EscapingUtilities.Escape(ToolsPath), mayBeReserved: true)); 908reservedProperties.Add(ProjectPropertyInstance.Create(ReservedPropertyNames.assemblyVersion, Constants.AssemblyVersion, mayBeReserved: true)); 909reservedProperties.Add(ProjectPropertyInstance.Create(ReservedPropertyNames.version, MSBuildAssemblyFileVersion.Instance.MajorMinorBuild, mayBeReserved: true)); 911reservedProperties.Add(ProjectPropertyInstance.Create(ReservedPropertyNames.msbuildRuntimeType,
Definition\ToolsetReader.cs (6)
19using ReservedPropertyNames = Microsoft.Build.Internal.ReservedPropertyNames; 523if (String.Equals(property.Name, ReservedPropertyNames.toolsPath, StringComparison.OrdinalIgnoreCase)) 531new ToolsetPropertyDefinition(ReservedPropertyNames.toolsPath, toolsPath, property.Source), 536else if (String.Equals(property.Name, ReservedPropertyNames.binPath, StringComparison.OrdinalIgnoreCase)) 544new ToolsetPropertyDefinition(ReservedPropertyNames.binPath, binPath, property.Source), 549else if (ReservedPropertyNames.IsReservedProperty(property.Name))
Evaluation\Evaluator.cs (25)
35using ReservedPropertyNames = Microsoft.Build.Internal.ReservedPropertyNames; 643SetBuiltInProperty(ReservedPropertyNames.interactive, "true"); 955SetBuiltInProperty(ReservedPropertyNames.projectDefaultTargets, EscapingUtilities.UnescapeAll(expanded)); 1130SetBuiltInProperty(ReservedPropertyNames.toolsVersion, _data.Toolset.ToolsVersion); 1131SetBuiltInProperty(ReservedPropertyNames.toolsPath, _data.Toolset.ToolsPath); 1132SetBuiltInProperty(ReservedPropertyNames.binPath, _data.Toolset.ToolsPath); 1133SetBuiltInProperty(ReservedPropertyNames.startupDirectory, startupDirectory); 1134SetBuiltInProperty(ReservedPropertyNames.buildNodeCount, _maxNodeCount.ToString(CultureInfo.CurrentCulture)); 1135SetBuiltInProperty(ReservedPropertyNames.programFiles32, FrameworkLocationHelper.programFiles32); 1136SetBuiltInProperty(ReservedPropertyNames.assemblyVersion, Constants.AssemblyVersion); 1137SetBuiltInProperty(ReservedPropertyNames.version, MSBuildAssemblyFileVersion.Instance.MajorMinorBuild); 1138SetBuiltInProperty(ReservedPropertyNames.fileVersion, CachedFileVersion); 1139SetBuiltInProperty(ReservedPropertyNames.semanticVersion, ProjectCollection.DisplayVersion); 1143SetBuiltInProperty(ReservedPropertyNames.msbuilddisablefeaturesfromversion, ChangeWaves.DisabledWave.ToString()); 1148SetBuiltInProperty(ReservedPropertyNames.osName, NativeMethodsShared.OSName); 1149SetBuiltInProperty(ReservedPropertyNames.frameworkToolsRoot, NativeMethodsShared.FrameworkBasePath); 1153SetBuiltInProperty(ReservedPropertyNames.msbuildRuntimeType, 1161SetBuiltInProperty(ReservedPropertyNames.projectDirectory, String.IsNullOrEmpty(_projectRootElement.DirectoryPath) ? 1183SetBuiltInProperty(ReservedPropertyNames.projectFile, projectFile); 1184SetBuiltInProperty(ReservedPropertyNames.projectName, projectFileWithoutExtension); 1185SetBuiltInProperty(ReservedPropertyNames.projectExtension, projectExtension); 1186SetBuiltInProperty(ReservedPropertyNames.projectFullPath, projectFullPath); 1187SetBuiltInProperty(ReservedPropertyNames.projectDirectory, projectDirectory); 1188SetBuiltInProperty(ReservedPropertyNames.projectDirectoryNoRoot, projectDirectoryNoRoot); 1731var projectPath = _data.GetProperty(ReservedPropertyNames.projectFullPath)?.EvaluatedValue;
Evaluation\Expander.cs (8)
26using ReservedPropertyNames = Microsoft.Build.Internal.ReservedPropertyNames; 1601if (!ReservedPropertyNames.IsReservedProperty(propertyName)) 1615if (String.Equals(propertyName, ReservedPropertyNames.thisFile, StringComparison.OrdinalIgnoreCase)) 1619else if (String.Equals(propertyName, ReservedPropertyNames.thisFileName, StringComparison.OrdinalIgnoreCase)) 1623else if (String.Equals(propertyName, ReservedPropertyNames.thisFileFullPath, StringComparison.OrdinalIgnoreCase)) 1627else if (String.Equals(propertyName, ReservedPropertyNames.thisFileExtension, StringComparison.OrdinalIgnoreCase)) 1631else if (String.Equals(propertyName, ReservedPropertyNames.thisFileDirectory, StringComparison.OrdinalIgnoreCase)) 1635else if (String.Equals(propertyName, ReservedPropertyNames.thisFileDirectoryNoRoot, StringComparison.OrdinalIgnoreCase))
Evaluation\ProjectParser.cs (3)
12using ReservedPropertyNames = Microsoft.Build.Internal.ReservedPropertyNames; 226ProjectErrorUtilities.VerifyThrowInvalidProject(!XMakeElements.ReservedItemNames.Contains(childElement.Name) && !ReservedPropertyNames.IsReservedProperty(childElement.Name), childElement.Location, "CannotModifyReservedProperty", childElement.Name); 699ProjectErrorUtilities.VerifyThrowInvalidProject(String.IsNullOrWhiteSpace(propertyNameAttribute?.Value) || !ReservedPropertyNames.IsReservedProperty(propertyNameAttribute.Value), element.Location, "CannotModifyReservedProperty", propertyNameAttribute?.Value);
Instance\ProjectInstance.cs (2)
2304if (!ReservedPropertyNames.IsReservedProperty(property.Name)) 2959|| ReservedPropertyNames.IsReservedProperty(environmentVariableName)))
Instance\ProjectPropertyInstance.cs (3)
13using ReservedPropertyNames = Microsoft.Build.Internal.ReservedPropertyNames; 329ErrorUtilities.VerifyThrowArgument(mayBeReserved || !ReservedPropertyNames.IsReservedProperty(name), "OM_CannotCreateReservedProperty", name); 335ProjectErrorUtilities.VerifyThrowInvalidProject(mayBeReserved || !ReservedPropertyNames.IsReservedProperty(name), location, "CannotModifyReservedProperty", name);
Utilities\Utilities.cs (8)
489envPropertiesHashSet.Add(ProjectPropertyInstance.Create(ReservedPropertyNames.extensionsPath32, extensionsPath32, true)); 493envPropertiesHashSet.Add(ProjectPropertyInstance.Create(ReservedPropertyNames.extensionsPath64, extensionsPath64, true)); 529envPropertiesHashSet.Add(ProjectPropertyInstance.Create(ReservedPropertyNames.extensionsPath, extensionsPath, true)); 535ProjectPropertyInstance localAppDataProp = envPropertiesHashSet.Get(ReservedPropertyNames.localAppData); 557envPropertiesHashSet.Add(ProjectPropertyInstance.Create(ReservedPropertyNames.localAppData, localAppData)); 560string userExtensionsPath = Path.Combine(localAppData, ReservedPropertyNames.userExtensionsPathSuffix); 561envPropertiesHashSet.Add(ProjectPropertyInstance.Create(ReservedPropertyNames.userExtensionsPath, userExtensionsPath)); 572!ReservedPropertyNames.IsReservedProperty(environmentVariableName))
Microsoft.Build.Engine.UnitTests (5)
Definition\Project_Internal_Tests.cs (3)
287project.GetPropertyValue(ReservedPropertyNames.interactive).ShouldBe(interactive ? bool.TrueString : string.Empty, StringCompareShould.IgnoreCase); 315project.GetPropertyValue(ReservedPropertyNames.interactive).ShouldBe(interactive ? bool.TrueString : string.Empty, StringCompareShould.IgnoreCase); 345project.GetPropertyValue(ReservedPropertyNames.interactive).ShouldBe(interactive ? bool.TrueString : string.Empty, StringCompareShould.IgnoreCase);
Instance\ProjectInstance_Internal_Tests.cs (2)
907projectInstance.GetPropertyValue(ReservedPropertyNames.interactive).ShouldBe(interactive ? bool.TrueString : string.Empty, StringCompareShould.IgnoreCase); 935projectInstance.GetPropertyValue(ReservedPropertyNames.interactive).ShouldBe(interactive ? bool.TrueString : string.Empty, StringCompareShould.IgnoreCase);