67 references to IsItemSpecModifier
Microsoft.Build (16)
Construction\ProjectMetadataElement.cs (1)
106
ErrorUtilities.VerifyThrowArgument(!FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
(name), "ItemSpecModifierCannotBeCustomMetadata", name);
Definition\BuiltInMetadata.cs (1)
76
Debug.Assert(FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
(name));
Definition\ProjectItem.cs (4)
461
if (FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
(name))
586
ErrorUtilities.VerifyThrowArgument(!FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
(name), "ItemSpecModifierCannotBeCustomMetadata", name);
644
ErrorUtilities.VerifyThrowArgument(!FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
(name), "ItemSpecModifierCannotBeCustomMetadata", name);
860
if (FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
(name))
Definition\ProjectItemDefinition.cs (1)
154
ErrorUtilities.VerifyThrowArgument(!FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
(name), "ItemSpecModifierCannotBeCustomMetadata", name);
Evaluation\Conditionals\Scanner.cs (1)
477
bool isItemSpecModifier = FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
(expression);
Evaluation\Expander.cs (1)
1091
bool isBuiltInMetadata = FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
(metadataName);
Evaluation\ProjectParser.cs (2)
379
if (FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
(name) || XMakeElements.ReservedItemNames.Contains(name))
400
ProjectErrorUtilities.VerifyThrowInvalidProject(!FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
(element.Name), element.Location, "ItemSpecModifierCannotBeCustomMetadata", element.Name);
Instance\ProjectItemInstance.cs (2)
1692
FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
(name) ||
1930
if (FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
(name))
Instance\ProjectMetadataInstance.cs (1)
72
ErrorUtilities.VerifyThrowArgument(!XMakeElements.ReservedItemNames.Contains(name) && !FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
(name), "OM_ReservedName", name);
Modifiers.cs (1)
316
bool isItemSpecModifier =
IsItemSpecModifier
(name);
TaskParameter.cs (1)
866
ErrorUtilities.VerifyThrowArgument(!FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
(metadataName), "Shared.CannotChangeItemSpecModifiers", metadataName);
Microsoft.Build.Engine.UnitTests (51)
FileUtilities_Tests.cs (49)
342
Assert.True(FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
("FullPath")); // "test 1"
343
Assert.True(FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
("RootDir")); // "test 2"
344
Assert.True(FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
("Filename")); // "test 3"
345
Assert.True(FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
("Extension")); // "test 4"
346
Assert.True(FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
("RelativeDir")); // "test 5"
347
Assert.True(FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
("Directory")); // "test 6"
348
Assert.True(FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
("RecursiveDir")); // "test 7"
349
Assert.True(FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
("Identity")); // "test 8"
350
Assert.True(FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
("ModifiedTime")); // "test 9"
351
Assert.True(FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
("CreatedTime")); // "test 10"
352
Assert.True(FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
("AccessedTime")); // "test 11"
355
Assert.True(FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
("fullPath")); // "test 21"
356
Assert.True(FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
("rootDir")); // "test 22"
357
Assert.True(FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
("filename")); // "test 23"
358
Assert.True(FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
("extension")); // "test 24"
359
Assert.True(FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
("relativeDir")); // "test 25"
360
Assert.True(FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
("directory")); // "test 26"
361
Assert.True(FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
("recursiveDir")); // "test 27"
362
Assert.True(FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
("identity")); // "test 28"
363
Assert.True(FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
("modifiedTime")); // "test 29"
364
Assert.True(FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
("createdTime")); // "test 30"
365
Assert.True(FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
("accessedTime")); // "test 31"
369
Assert.False(FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
("rootxxx")); // "test 41"
370
Assert.False(FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
("Rootxxx")); // "test 42"
371
Assert.False(FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
("xxxxxxx")); // "test 43"
373
Assert.False(FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
("filexxxx")); // "test 44"
374
Assert.False(FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
("Filexxxx")); // "test 45"
375
Assert.False(FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
("idenxxxx")); // "test 46"
376
Assert.False(FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
("Idenxxxx")); // "test 47"
377
Assert.False(FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
("xxxxxxxx")); // "test 48"
379
Assert.False(FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
("extenxxxx")); // "test 49"
380
Assert.False(FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
("Extenxxxx")); // "test 50"
381
Assert.False(FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
("direcxxxx")); // "test 51"
382
Assert.False(FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
("Direcxxxx")); // "test 52"
383
Assert.False(FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
("xxxxxxxxx")); // "test 53"
385
Assert.False(FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
("xxxxxxxxxx")); // "test 54"
387
Assert.False(FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
("relativexxx")); // "test 55"
388
Assert.False(FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
("Relativexxx")); // "test 56"
389
Assert.False(FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
("createdxxxx")); // "test 57"
390
Assert.False(FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
("Createdxxxx")); // "test 58"
391
Assert.False(FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
("xxxxxxxxxxx")); // "test 59"
393
Assert.False(FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
("recursivexxx")); // "test 60"
394
Assert.False(FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
("Recursivexxx")); // "test 61"
395
Assert.False(FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
("accessedxxxx")); // "test 62"
396
Assert.False(FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
("Accessedxxxx")); // "test 63"
397
Assert.False(FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
("modifiedxxxx")); // "test 64"
398
Assert.False(FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
("Modifiedxxxx")); // "test 65"
399
Assert.False(FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
("xxxxxxxxxxxx")); // "test 66"
401
Assert.False(FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
(null)); // "test 67"
TestComparers\TaskItemComparer.cs (2)
53
if (!FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
(metadataName) ||
65
if (!FileUtilities.ItemSpecModifiers.
IsItemSpecModifier
(metadataName) ||