19 references to Shared
Microsoft.Build (16)
BackEnd\Components\RequestBuilder\RequestBuilder.cs (4)
1298isFromNuget = FileClassifier.Shared.IsInNugetCache(projectTargetInstance.Value.FullPath); 1299isCustom = !FileClassifier.Shared.IsBuiltInLogic(projectTargetInstance.Value.FullPath) || 1301(isFromNuget && FileClassifier.Shared.IsMicrosoftPackageInNugetCache(projectTargetInstance.Value.FullPath)); 1512FileClassifier.Shared.RegisterKnownImmutableLocations(project.GetPropertyValue);
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (2)
439FileClassifier.Shared.RegisterFrameworkLocations(getPropertyValue); 440FileClassifier.Shared.RegisterKnownImmutableLocations(getPropertyValue);
BuildCheck\Infrastructure\CheckScopeClassifier.cs (4)
13static CheckScopeClassifier() => FileClassifier.Shared.OnImmutablePathsInitialized += SubscribeImmutablePathsInitialized; 17internal static bool IsScopingInitialized => FileClassifier.Shared.IsImmutablePathsInitialized; 53&& !FileClassifier.Shared.IsNonModifiable(filePathOfEvent) 67FileClassifier.Shared.OnImmutablePathsInitialized -= () => NotifyOnScopingReadiness?.Invoke();
Definition\ToolsetReader.cs (1)
422FileClassifier.Shared.RegisterFrameworkLocations(p =>
Evaluation\ProjectRootElementCache.cs (1)
179if (!Traits.Instance.EscapeHatches.AlwaysDoImmutableFilesUpToDateCheck && FileClassifier.Shared.IsNonModifiable(projectFile))
Instance\TaskRegistry.cs (4)
1275!FileClassifier.Shared.IsBuiltInLogic(_taskFactoryAssemblyLoadInfo.AssemblyFile))) 1277&& !FileClassifier.Shared.IsBuiltInLogic(_definingFileFullPath); 1281=> FileClassifier.Shared.IsInNugetCache(_taskFactoryAssemblyLoadInfo.AssemblyFile) || 1282FileClassifier.Shared.IsInNugetCache(_definingFileFullPath);
Microsoft.Build.Framework (2)
FileClassifier.cs (1)
73/// Single, static <see cref="Lazy{T}"/> instance of shared file FileClassifier for <see cref="Shared"/> member.
NativeMethods.cs (1)
1162bool isNonModifiable = FileClassifier.Shared.IsNonModifiable(fullPath);
Microsoft.Build.Framework.UnitTests (1)
FileClassifier_Tests.cs (1)
24FileClassifier.Shared.ShouldNotBeNull();