1 write to _loadedType
Microsoft.Build (1)
Instance\TaskFactories\AssemblyTaskFactory.cs (1)
270
_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; }
148
return
_loadedType
.Properties;
271
ProjectErrorUtilities.VerifyThrowInvalidProject(
_loadedType
!= null, elementLocation, "TaskLoadFailure", taskName, loadInfo.AssemblyLocation, String.Empty);
302
return
_loadedType
;
324
bool useTaskFactory =
_loadedType
.LoadedViaMetadataLoadContext;
337
useTaskFactory =
_loadedType
.LoadedViaMetadataLoadContext || !TaskHostParametersMatchCurrentProcess(mergedParameters);
342
&&
_loadedType
?.Type != null
345
if (TaskRouter.NeedsTaskHostInMultiThreadedMode(
_loadedType
.Type))
356
if (
_loadedType
?.Type != null && TaskRouter.RequiresTransientTaskHost(
_loadedType
.Type))
391
_loadedType
,
410
_loadedType
,
419
appDomain => AssemblyLoadsTracker.StartTracking(taskLoggingContext, AssemblyLoadingContext.TaskRun,
_loadedType
.Type, appDomain),
439
taskLoggingContext?.TargetLoggingContext?.ProjectLoggingContext?.ProjectTelemetry?.TrackTaskSubclassing(
_loadedType
.Type, isMicrosoftOwned);
454
??
_loadedType
?.Runtime
459
??
_loadedType
?.Architecture
485
return _typeLoader.ReflectionOnlyLoad(taskName,
_loadedType
.Assembly) != null;
491
ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskLoadFailure", taskName,
_loadedType
.Assembly.AssemblyLocation, Environment.NewLine + e.InnerException.ToString());
500
targetLoggingContext.LogError(new BuildEventFileInfo(taskProjectFile), "TaskLoadFailure", taskName,
_loadedType
.Assembly.AssemblyLocation, exception.Message);
504
ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskLoadFailure", taskName,
_loadedType
.Assembly.AssemblyLocation, e.Message);
509
ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskLoadFailure", taskName,
_loadedType
.Assembly.AssemblyLocation, e.Message);
520
ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskLoadFailure", taskName,
_loadedType
.Assembly.AssemblyLocation, e.Message);
731
if (
_loadedType
?.Type == null)
737
string assemblyName =
_loadedType
.Assembly.AssemblyName;
744
string assemblyFile =
_loadedType
.Assembly.AssemblyFile;