16 references to IsNonModifiable
Microsoft.Build (2)
BuildCheck\Infrastructure\CheckScopeClassifier.cs (1)
53&& !FileClassifier.Shared.IsNonModifiable(filePathOfEvent)
Evaluation\ProjectRootElementCache.cs (1)
179if (!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)
1162bool isNonModifiable = FileClassifier.Shared.IsNonModifiable(fullPath);
Microsoft.Build.Framework.UnitTests (11)
FileClassifier_Tests.cs (11)
36classifier.IsNonModifiable(Path.Combine(volume, "Test1", "File.ext")).ShouldBeTrue(); 37classifier.IsNonModifiable(Path.Combine(volume, "Test2", "File.ext")).ShouldBeTrue(); 38classifier.IsNonModifiable(Path.Combine(volume, "Test3", "File.ext")).ShouldBeFalse(); 54classifier.IsNonModifiable(Path.Combine(volume, "Test1", "File.ext")).ShouldBeTrue(); 55classifier.IsNonModifiable(Path.Combine(volume, "Test2", "File.ext")).ShouldBeTrue(); 56classifier.IsNonModifiable(Path.Combine(volume, "Test3", "File.ext")).ShouldBeFalse(); 69classifier.IsNonModifiable(Path.Combine(volume, "Test1", "File.ext")).ShouldBeTrue(); 70classifier.IsNonModifiable(Path.Combine(volume, "test1", "File.ext")).ShouldBeFalse(); 74classifier.IsNonModifiable(Path.Combine(volume, "Test1", "File.ext")).ShouldBeTrue(); 75classifier.IsNonModifiable(Path.Combine(volume, "test1", "File.ext")).ShouldBeTrue(); 84classifier.IsNonModifiable("X:\\Test3\\File.ext").ShouldBeFalse();