16 references to IsNonModifiable
Microsoft.Build (2)
BuildCheck\Infrastructure\CheckScopeClassifier.cs (1)
53
&& !FileClassifier.Shared.
IsNonModifiable
(filePathOfEvent)
Evaluation\ProjectRootElementCache.cs (1)
179
if (!Traits.Instance.EscapeHatches.AlwaysDoImmutableFilesUpToDateCheck && FileClassifier.Shared.
IsNonModifiable
(projectFile))
Microsoft.Build.Framework (3)
FileClassifier.cs (2)
31
/// <see cref="
IsNonModifiable
" /> which indicates the file is not expected to change over time,
234
/// This value is used by <see cref="
IsNonModifiable
" />.
NativeMethods.cs (1)
1162
bool isNonModifiable = FileClassifier.Shared.
IsNonModifiable
(fullPath);
Microsoft.Build.Framework.UnitTests (11)
FileClassifier_Tests.cs (11)
36
classifier.
IsNonModifiable
(Path.Combine(volume, "Test1", "File.ext")).ShouldBeTrue();
37
classifier.
IsNonModifiable
(Path.Combine(volume, "Test2", "File.ext")).ShouldBeTrue();
38
classifier.
IsNonModifiable
(Path.Combine(volume, "Test3", "File.ext")).ShouldBeFalse();
54
classifier.
IsNonModifiable
(Path.Combine(volume, "Test1", "File.ext")).ShouldBeTrue();
55
classifier.
IsNonModifiable
(Path.Combine(volume, "Test2", "File.ext")).ShouldBeTrue();
56
classifier.
IsNonModifiable
(Path.Combine(volume, "Test3", "File.ext")).ShouldBeFalse();
69
classifier.
IsNonModifiable
(Path.Combine(volume, "Test1", "File.ext")).ShouldBeTrue();
70
classifier.
IsNonModifiable
(Path.Combine(volume, "test1", "File.ext")).ShouldBeFalse();
74
classifier.
IsNonModifiable
(Path.Combine(volume, "Test1", "File.ext")).ShouldBeTrue();
75
classifier.
IsNonModifiable
(Path.Combine(volume, "test1", "File.ext")).ShouldBeTrue();
84
classifier.
IsNonModifiable
("X:\\Test3\\File.ext").ShouldBeFalse();