1 write to _loadedType
Microsoft.Build (1)
Instance\TaskFactories\AssemblyTaskFactory.cs (1)
277
_loadedType
= _typeLoader.Load(taskName, loadInfo, taskHostExplicitlyRequested, taskHostParamsMatchCurrentProc);
22 references to _loadedType
Microsoft.Build (22)
Instance\TaskFactories\AssemblyTaskFactory.cs (22)
88
return
_loadedType
.Assembly.AssemblyLocation;
97
get { return
_loadedType
.Type; }
151
return
_loadedType
.Properties;
278
ProjectErrorUtilities.VerifyThrowInvalidProject(
_loadedType
!= null, elementLocation, "TaskLoadFailure", taskName, loadInfo.AssemblyLocation, String.Empty);
309
return
_loadedType
;
328
bool useTaskFactory =
_loadedType
.LoadedViaMetadataLoadContext;
342
useTaskFactory =
_loadedType
.LoadedViaMetadataLoadContext || !TaskHostParametersMatchCurrentProcess(mergedParameters);
347
&&
_loadedType
?.Type != null
350
if (TaskRouter.NeedsTaskHostInMultiThreadedMode(
_loadedType
.Type))
375
_loadedType
,
391
_loadedType
,
399
appDomain => AssemblyLoadsTracker.StartTracking(taskLoggingContext, AssemblyLoadingContext.TaskRun,
_loadedType
.Type, appDomain),
423
_taskLoggingContext?.TargetLoggingContext?.ProjectLoggingContext?.ProjectTelemetry?.TrackTaskSubclassing(
_loadedType
.Type, isMicrosoftOwned);
445
return _typeLoader.ReflectionOnlyLoad(taskName,
_loadedType
.Assembly) != null;
451
ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskLoadFailure", taskName,
_loadedType
.Assembly.AssemblyLocation, Environment.NewLine + e.InnerException.ToString());
460
targetLoggingContext.LogError(new BuildEventFileInfo(taskProjectFile), "TaskLoadFailure", taskName,
_loadedType
.Assembly.AssemblyLocation, exception.Message);
464
ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskLoadFailure", taskName,
_loadedType
.Assembly.AssemblyLocation, e.Message);
469
ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskLoadFailure", taskName,
_loadedType
.Assembly.AssemblyLocation, e.Message);
473
ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskLoadFailure", taskName,
_loadedType
.Assembly.AssemblyLocation, e.Message);
670
if (
_loadedType
?.Type == null)
676
string assemblyName =
_loadedType
.Assembly.AssemblyName;
683
string assemblyFile =
_loadedType
.Assembly.AssemblyFile;