4 writes to _assemblyPath
Microsoft.Build.Tasks.Core (4)
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (4)
707
_assemblyPath
= cachedEntry.AssemblyPath;
718
_assemblyPath
= TaskFactoryUtilities.GetTemporaryTaskAssemblyPath(); // in a temp directory for this process, persisted until the end of build
722
_assemblyPath
= FileUtilities.GetTemporaryFileName(".dll"); // dll in the root of the temp directory, removed immediately after compilation
835
_assemblyPath
= null;
8 references to _assemblyPath
Microsoft.Build.Tasks.Core (8)
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (8)
165
public string GetAssemblyPath() =>
_assemblyPath
;
628
TaskFactoryUtilities.CreateLoadManifest(
_assemblyPath
, directoriesToAddToAppDomain);
786
managedCompiler.OutputAssembly = new TaskItem(
_assemblyPath
);
812
assembly = TaskFactoryUtilities.LoadTaskAssembly(
_assemblyPath
);
815
string cachedAssemblyPath = _compileForOutOfProcess ?
_assemblyPath
: string.Empty;
832
if (!_compileForOutOfProcess && !string.IsNullOrEmpty(
_assemblyPath
) && FileSystems.Default.FileExists(
_assemblyPath
))
834
File.Delete(
_assemblyPath
);