31 references to TaskFactoryUtilities
Microsoft.Build (2)
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (1)
1017bool shouldRunOutOfProc = TaskFactoryUtilities.ShouldCompileForOutOfProcess(taskFactoryEngineContext)
TypeLoader.cs (1)
228return TaskFactoryUtilities.LoadTaskAssembly(assemblyLoadInfo.AssemblyFile);
Microsoft.Build.Framework (1)
Utilities\AssemblyLoadInfo.cs (1)
232get { return _assemblyFile?.EndsWith(TaskFactoryUtilities.InlineTaskSuffix, StringComparison.OrdinalIgnoreCase) == true; }
Microsoft.Build.Tasks.Core (22)
CodeTaskFactory.cs (9)
87private static readonly ConcurrentDictionary<FullTaskSpecification, TaskFactoryUtilities.CachedAssemblyEntry> s_compiledTaskCache = new ConcurrentDictionary<FullTaskSpecification, TaskFactoryUtilities.CachedAssemblyEntry>(); 200_compileForOutOfProcess = TaskFactoryUtilities.ShouldCompileForOutOfProcess(taskFactoryLoggingHost); 788string resolvedPath = TaskFactoryUtilities.ResolveTaskSourceCodePath(_sourcePath, isMultiThreaded, projectDirectory); 834if (s_compiledTaskCache.TryGetValue(fullSpec, out TaskFactoryUtilities.CachedAssemblyEntry cachedEntry)) 874_assemblyPath = TaskFactoryUtilities.GetTemporaryTaskAssemblyPath(); 922TaskFactoryUtilities.CreateLoadManifestFromReferences(_assemblyPath, finalReferencedAssemblies); 923assembly = TaskFactoryUtilities.LoadTaskAssembly(_assemblyPath); 937s_compiledTaskCache.TryAdd(fullSpec, new TaskFactoryUtilities.CachedAssemblyEntry(assembly, cachedAssemblyPath));
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (11)
87private static readonly ConcurrentDictionary<RoslynCodeTaskFactoryTaskInfo, TaskFactoryUtilities.CachedAssemblyEntry> CompiledAssemblyCache = new ConcurrentDictionary<RoslynCodeTaskFactoryTaskInfo, TaskFactoryUtilities.CachedAssemblyEntry>(); 169_compileForOutOfProcess = TaskFactoryUtilities.ShouldCompileForOutOfProcess(taskFactoryLoggingHost); 463string resolvedPath = TaskFactoryUtilities.ResolveTaskSourceCodePath(sourcePath, isMultiThreaded, projectDirectory); 608var directoriesToAddToAppDomain = TaskFactoryUtilities.ExtractUniqueDirectoriesFromAssemblyPaths(resolvedAssemblyReferences.ToList()); 610handlerAddedToAppDomain = TaskFactoryUtilities.CreateAssemblyResolver(directoriesToAddToAppDomain); 617TaskFactoryUtilities.CreateLoadManifest(_assemblyPath, directoriesToAddToAppDomain); 684if (CompiledAssemblyCache.TryGetValue(taskInfo, out TaskFactoryUtilities.CachedAssemblyEntry cachedEntry)) 707_assemblyPath = TaskFactoryUtilities.GetTemporaryTaskAssemblyPath(); // in a temp directory for this process, persisted until the end of build 801assembly = TaskFactoryUtilities.LoadTaskAssembly(_assemblyPath); 805CompiledAssemblyCache.TryAdd(taskInfo, new TaskFactoryUtilities.CachedAssemblyEntry(assembly, cachedAssemblyPath));
XamlTaskFactory\XamlTaskFactory.cs (2)
133_compileForOutOfProcess = TaskFactoryUtilities.ShouldCompileForOutOfProcess(taskFactoryLoggingHost); 138_assemblyPath = TaskFactoryUtilities.GetTemporaryTaskAssemblyPath();
Microsoft.Build.Tasks.UnitTests (4)
TaskFactoryUtilities_Tests.cs (4)
24string assemblyPath = TaskFactoryUtilities.GetTemporaryTaskAssemblyPath(); 41string manifestPath = TaskFactoryUtilities.CreateLoadManifest(tempAssemblyFile.Path, directories); 44manifestPath.ShouldBe(tempAssemblyFile.Path + TaskFactoryUtilities.InlineTaskLoadManifestSuffix); 61ResolveEventHandler handler = TaskFactoryUtilities.CreateAssemblyResolver(directories);
MSBuild (2)
OutOfProcTaskHostNode.cs (1)
1088TaskFactoryUtilities.RegisterAssemblyResolveHandlersFromManifest(taskLocation);
TypeLoader.cs (1)
228return TaskFactoryUtilities.LoadTaskAssembly(assemblyLoadInfo.AssemblyFile);