1 write to _loadedType
Microsoft.Build (1)
Instance\TaskFactories\AssemblyTaskFactory.cs (1)
258
_loadedType
= _typeLoader.Load(taskName, loadInfo, targetLoggingContext.LogWarning, taskHostExplicitlyRequested, taskHostParamsMatchCurrentProc);
26 references to _loadedType
Microsoft.Build (26)
Instance\TaskFactories\AssemblyTaskFactory.cs (26)
85
return
_loadedType
.Assembly.AssemblyLocation;
94
get { return
_loadedType
.Type; }
142
return
_loadedType
.Properties;
259
ProjectErrorUtilities.VerifyThrowInvalidProject(
_loadedType
!= null, elementLocation, "TaskLoadFailure", taskName, loadInfo.AssemblyLocation, String.Empty);
290
return
_loadedType
;
312
bool useTaskFactory =
_loadedType
.LoadedViaMetadataLoadContext;
325
useTaskFactory =
_loadedType
.LoadedViaMetadataLoadContext || !TaskHostParametersMatchCurrentProcess(mergedParameters);
330
&&
_loadedType
?.Type != null
333
if (TaskRouter.NeedsTaskHostInMultiThreadedMode(
_loadedType
.Type))
344
if (
_loadedType
?.Type != null && TaskRouter.RequiresTransientTaskHost(
_loadedType
.Type))
379
_loadedType
,
398
_loadedType
,
427
taskLoggingContext?.TargetLoggingContext?.ProjectLoggingContext?.ProjectTelemetry?.TrackTaskSubclassing(
_loadedType
.Type, isMicrosoftOwned);
442
??
_loadedType
?.Runtime
447
??
_loadedType
?.Architecture
473
return _typeLoader.ReflectionOnlyLoad(taskName,
_loadedType
.Assembly) != null;
479
ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskLoadFailure", taskName,
_loadedType
.Assembly.AssemblyLocation, Environment.NewLine + e.InnerException.ToString());
488
targetLoggingContext.LogError(new BuildEventFileInfo(taskProjectFile), "TaskLoadFailure", taskName,
_loadedType
.Assembly.AssemblyLocation, exception.Message);
492
ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskLoadFailure", taskName,
_loadedType
.Assembly.AssemblyLocation, e.Message);
497
ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskLoadFailure", taskName,
_loadedType
.Assembly.AssemblyLocation, e.Message);
503
ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskLoadFailure", taskName,
_loadedType
.Assembly.AssemblyLocation, e.Message);
508
ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskLoadFailure", taskName,
_loadedType
.Assembly.AssemblyLocation, e.Message);
717
if (
_loadedType
?.Type == null)
723
string assemblyName =
_loadedType
.Assembly.AssemblyName;
730
string assemblyFile =
_loadedType
.Assembly.AssemblyFile;