24 references to AssemblyLoadingContext
Microsoft.Build (13)
BackEnd\Components\Logging\LoggingService.cs (1)
1801using var assemblyLoadTracker = AssemblyLoadsTracker.StartTracking(this, AssemblyLoadingContext.LoggerInitialization, UnwrapLoggerType(logger).GetType());
BackEnd\Components\RequestBuilder\AssemblyLoadsTracker.cs (6)
25private readonly AssemblyLoadingContext _context; 32AssemblyLoadingContext context, 45AssemblyLoadingContext context, 52AssemblyLoadingContext context, 59AssemblyLoadingContext context, 104AssemblyLoadingContext context,
BackEnd\Components\RequestBuilder\TaskBuilder.cs (1)
655using var assemblyLoadsTracker = AssemblyLoadsTracker.StartTracking(taskLoggingContext, AssemblyLoadingContext.TaskRun, _taskExecutionHost?.TaskInstance?.GetType());
Evaluation\Evaluator.cs (2)
625AssemblyLoadsTracker.StartTracking(_evaluationLoggingContext, AssemblyLoadingContext.Evaluation); 1789using var assemblyLoadsTracker = AssemblyLoadsTracker.StartTracking(_evaluationLoggingContext, AssemblyLoadingContext.SdkResolution, _sdkResolverService.GetType());
Instance\TaskFactories\AssemblyTaskFactory.cs (1)
276using var assemblyLoadsTracker = AssemblyLoadsTracker.StartTracking(targetLoggingContext, AssemblyLoadingContext.TaskRun, assemblyName);
Logging\BinaryLogger\BuildEventArgsReader.cs (2)
1239AssemblyLoadingContext context = (AssemblyLoadingContext)ReadInt32();
Microsoft.Build.Engine.UnitTests (5)
BackEnd\NodePackets_Tests.cs (2)
66AssemblyLoadBuildEventArgs assemblyLoad = new(AssemblyLoadingContext.Evaluation, null, null, "path", Guid.NewGuid(), null); 288new AssemblyLoadBuildEventArgs(AssemblyLoadingContext.Evaluation, "init", "aname", "path", Guid.NewGuid(), "domain", MessageImportance.Normal),
BuildEventArgsSerialization_Tests.cs (3)
523AssemblyLoadingContext context = 524(AssemblyLoadingContext)(new Random().Next(Enum.GetNames(typeof(AssemblyLoadingContext)).Length));
Microsoft.Build.Framework (3)
AssemblyLoadBuildEventArgs.cs (3)
20AssemblyLoadingContext loadingContext, 37public AssemblyLoadingContext LoadingContext { get; private set; } 64LoadingContext = (AssemblyLoadingContext)reader.Read7BitEncodedInt();
Microsoft.Build.Framework.UnitTests (3)
AssemblyLoadBuildEventArgs_Tests.cs (3)
21AssemblyLoadingContext context = 22(AssemblyLoadingContext)(new Random().Next(Enum.GetNames(typeof(AssemblyLoadingContext)).Length));