1 write to _loadedType
Microsoft.Build (1)
Instance\TaskFactories\AssemblyTaskFactory.cs (1)
277
_loadedType
= _typeLoader.Load(taskName, loadInfo, targetLoggingContext.LogWarning, taskHostExplicitlyRequested, taskHostParamsMatchCurrentProc);
24 references to _loadedType
Microsoft.Build (24)
Instance\TaskFactories\AssemblyTaskFactory.cs (24)
89
return
_loadedType
.Assembly.AssemblyLocation;
98
get { return
_loadedType
.Type; }
152
return
_loadedType
.Properties;
278
ProjectErrorUtilities.VerifyThrowInvalidProject(
_loadedType
!= null, elementLocation, "TaskLoadFailure", taskName, loadInfo.AssemblyLocation, String.Empty);
309
return
_loadedType
;
331
bool useTaskFactory =
_loadedType
.LoadedViaMetadataLoadContext;
345
useTaskFactory =
_loadedType
.LoadedViaMetadataLoadContext || !TaskHostParametersMatchCurrentProcess(mergedParameters);
350
&&
_loadedType
?.Type != null
353
if (TaskRouter.NeedsTaskHostInMultiThreadedMode(
_loadedType
.Type))
380
_loadedType
,
399
_loadedType
,
407
appDomain => AssemblyLoadsTracker.StartTracking(taskLoggingContext, AssemblyLoadingContext.TaskRun,
_loadedType
.Type, appDomain),
431
_taskLoggingContext?.TargetLoggingContext?.ProjectLoggingContext?.ProjectTelemetry?.TrackTaskSubclassing(
_loadedType
.Type, isMicrosoftOwned);
446
??
_loadedType
?.Runtime
451
??
_loadedType
?.Architecture
477
return _typeLoader.ReflectionOnlyLoad(taskName,
_loadedType
.Assembly) != null;
483
ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskLoadFailure", taskName,
_loadedType
.Assembly.AssemblyLocation, Environment.NewLine + e.InnerException.ToString());
492
targetLoggingContext.LogError(new BuildEventFileInfo(taskProjectFile), "TaskLoadFailure", taskName,
_loadedType
.Assembly.AssemblyLocation, exception.Message);
496
ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskLoadFailure", taskName,
_loadedType
.Assembly.AssemblyLocation, e.Message);
501
ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskLoadFailure", taskName,
_loadedType
.Assembly.AssemblyLocation, e.Message);
512
ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskLoadFailure", taskName,
_loadedType
.Assembly.AssemblyLocation, e.Message);
723
if (
_loadedType
?.Type == null)
729
string assemblyName =
_loadedType
.Assembly.AssemblyName;
736
string assemblyFile =
_loadedType
.Assembly.AssemblyFile;