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)
30
/// <see cref="
IsNonModifiable
" /> which indicates the file is not expected to change over time,
204
/// 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)
30
classifier.
IsNonModifiable
(Path.Combine(volume, "Test1", "File.ext")).ShouldBeTrue();
31
classifier.
IsNonModifiable
(Path.Combine(volume, "Test2", "File.ext")).ShouldBeTrue();
32
classifier.
IsNonModifiable
(Path.Combine(volume, "Test3", "File.ext")).ShouldBeFalse();
48
classifier.
IsNonModifiable
(Path.Combine(volume, "Test1", "File.ext")).ShouldBeTrue();
49
classifier.
IsNonModifiable
(Path.Combine(volume, "Test2", "File.ext")).ShouldBeTrue();
50
classifier.
IsNonModifiable
(Path.Combine(volume, "Test3", "File.ext")).ShouldBeFalse();
63
classifier.
IsNonModifiable
(Path.Combine(volume, "Test1", "File.ext")).ShouldBeTrue();
64
classifier.
IsNonModifiable
(Path.Combine(volume, "test1", "File.ext")).ShouldBeFalse();
68
classifier.
IsNonModifiable
(Path.Combine(volume, "Test1", "File.ext")).ShouldBeTrue();
69
classifier.
IsNonModifiable
(Path.Combine(volume, "test1", "File.ext")).ShouldBeTrue();
78
classifier.
IsNonModifiable
("X:\\Test3\\File.ext").ShouldBeFalse();