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