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)
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)
1162bool isNonModifiable = FileClassifier.Shared.IsNonModifiable(fullPath);
Microsoft.Build.Framework.UnitTests (11)
FileClassifier_Tests.cs (11)
30classifier.IsNonModifiable(Path.Combine(volume, "Test1", "File.ext")).ShouldBeTrue(); 31classifier.IsNonModifiable(Path.Combine(volume, "Test2", "File.ext")).ShouldBeTrue(); 32classifier.IsNonModifiable(Path.Combine(volume, "Test3", "File.ext")).ShouldBeFalse(); 48classifier.IsNonModifiable(Path.Combine(volume, "Test1", "File.ext")).ShouldBeTrue(); 49classifier.IsNonModifiable(Path.Combine(volume, "Test2", "File.ext")).ShouldBeTrue(); 50classifier.IsNonModifiable(Path.Combine(volume, "Test3", "File.ext")).ShouldBeFalse(); 63classifier.IsNonModifiable(Path.Combine(volume, "Test1", "File.ext")).ShouldBeTrue(); 64classifier.IsNonModifiable(Path.Combine(volume, "test1", "File.ext")).ShouldBeFalse(); 68classifier.IsNonModifiable(Path.Combine(volume, "Test1", "File.ext")).ShouldBeTrue(); 69classifier.IsNonModifiable(Path.Combine(volume, "test1", "File.ext")).ShouldBeTrue(); 78classifier.IsNonModifiable("X:\\Test3\\File.ext").ShouldBeFalse();