1 write to _loadedType
Microsoft.Build (1)
Instance\TaskFactories\AssemblyTaskFactory.cs (1)
265
_loadedType
= _typeLoader.Load(taskName, loadInfo, targetLoggingContext.LogWarning, taskHostExplicitlyRequested, taskHostParamsMatchCurrentProc);
24 references to _loadedType
Microsoft.Build (24)
Instance\TaskFactories\AssemblyTaskFactory.cs (24)
86
return
_loadedType
.Assembly.AssemblyLocation;
96
get { return
_loadedType
.Type; }
146
return
_loadedType
.Properties;
266
ProjectErrorUtilities.VerifyThrowInvalidProject(
_loadedType
!= null, elementLocation, "TaskLoadFailure", taskName, loadInfo.AssemblyLocation, String.Empty);
297
return
_loadedType
;
319
bool useTaskFactory =
_loadedType
.LoadedViaMetadataLoadContext;
332
useTaskFactory =
_loadedType
.LoadedViaMetadataLoadContext || !TaskHostParametersMatchCurrentProcess(mergedParameters);
337
&&
_loadedType
?.Type != null
340
if (TaskRouter.NeedsTaskHostInMultiThreadedMode(
_loadedType
.Type))
367
_loadedType
,
386
_loadedType
,
415
taskLoggingContext?.TargetLoggingContext?.ProjectLoggingContext?.ProjectTelemetry?.TrackTaskSubclassing(
_loadedType
.Type, isMicrosoftOwned);
430
??
_loadedType
?.Runtime
435
??
_loadedType
?.Architecture
462
return _typeLoader.ReflectionOnlyLoad(taskName,
_loadedType
.Assembly) != null;
468
ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskLoadFailure", taskName,
_loadedType
.Assembly.AssemblyLocation, Environment.NewLine + e.InnerException.ToString());
477
targetLoggingContext.LogError(new BuildEventFileInfo(taskProjectFile), "TaskLoadFailure", taskName,
_loadedType
.Assembly.AssemblyLocation, exception.Message);
481
ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskLoadFailure", taskName,
_loadedType
.Assembly.AssemblyLocation, e.Message);
486
ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskLoadFailure", taskName,
_loadedType
.Assembly.AssemblyLocation, e.Message);
492
ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskLoadFailure", taskName,
_loadedType
.Assembly.AssemblyLocation, e.Message);
497
ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskLoadFailure", taskName,
_loadedType
.Assembly.AssemblyLocation, e.Message);
706
if (
_loadedType
?.Type == null)
712
string assemblyName =
_loadedType
.Assembly.AssemblyName;
719
string assemblyFile =
_loadedType
.Assembly.AssemblyFile;