4 writes to _assemblyPath
Microsoft.Build.Tasks.Core (4)
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (4)
679
_assemblyPath
= cachedEntry.AssemblyPath;
690
_assemblyPath
= TaskFactoryUtilities.GetTemporaryTaskAssemblyPath(); // in a temp directory for this process, persisted until the end of build
694
_assemblyPath
= FileUtilities.GetTemporaryFileName(".dll"); // dll in the root of the temp directory, removed immediately after compilation
805
_assemblyPath
= null;
8 references to _assemblyPath
Microsoft.Build.Tasks.Core (8)
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (8)
148
public string GetAssemblyPath() =>
_assemblyPath
;
600
TaskFactoryUtilities.CreateLoadManifest(
_assemblyPath
, directoriesToAddToAppDomain);
758
managedCompiler.OutputAssembly = new TaskItem(
_assemblyPath
);
784
assembly = TaskFactoryUtilities.LoadTaskAssembly(
_assemblyPath
);
786
string cachedAssemblyPath = Traits.Instance.ForceTaskFactoryOutOfProc ?
_assemblyPath
: string.Empty;
802
if (!Traits.Instance.ForceTaskFactoryOutOfProc && !string.IsNullOrEmpty(
_assemblyPath
) && FileSystems.Default.FileExists(
_assemblyPath
))
804
File.Delete(
_assemblyPath
);