19 references to Build
Microsoft.Build (5)
BackEnd\Components\Caching\RegisteredTaskObjectCache.cs (2)
39ErrorUtilities.VerifyThrow(IsCollectionEmptyOrUncreated(RegisteredTaskObjectLifetime.Build), "Build lifetime objects were not disposed at the end of the build"); 73ErrorUtilities.VerifyThrow(IsCollectionEmptyOrUncreated(RegisteredTaskObjectLifetime.Build), "Build lifetime objects were not disposed at the end of the build");
BackEnd\Node\InProcNode.cs (1)
325objectCache.DisposeCacheObjects(RegisteredTaskObjectLifetime.Build);
BackEnd\Node\OutOfProcNode.cs (1)
463objectCache.DisposeCacheObjects(RegisteredTaskObjectLifetime.Build);
RegisteredTaskObjectCacheBase.cs (1)
125case RegisteredTaskObjectLifetime.Build:
Microsoft.Build.Engine.UnitTests (2)
BackEnd\AssemblyLoadContextTestTasks.cs (2)
20RegisteredTaskObjectLifetime.Build, 31var entry = (RegisterObject)BuildEngine4.GetRegisteredTaskObject(RegisterObject.CacheKey, RegisteredTaskObjectLifetime.Build);
Microsoft.Build.Tasks.Core (4)
AssemblyDependency\AssemblyFoldersFromConfig\AssemblyFoldersFromConfigResolver.cs (2)
123_assemblyFoldersCache = _buildEngine.GetRegisteredTaskObject(key, RegisteredTaskObjectLifetime.Build) as AssemblyFoldersFromConfigCache; 139_buildEngine?.RegisterTaskObject(key, _assemblyFoldersCache, RegisteredTaskObjectLifetime.Build, true /* dispose early ok*/);
GetInstalledSDKLocations.cs (2)
194object staticCacheDisposer = buildEngine4.GetRegisteredTaskObject(StaticSDKCacheKey, RegisteredTaskObjectLifetime.Build); 200buildEngine4.RegisterTaskObject(StaticSDKCacheKey, staticDisposer, RegisteredTaskObjectLifetime.Build, allowEarlyCollection: false);
Microsoft.DotNet.Arcade.Sdk (6)
src\CheckRequiredDotNetVersion.cs (2)
56var cachedResult = (CacheEntry)BuildEngine4.GetRegisteredTaskObject(s_cacheKey, RegisteredTaskObjectLifetime.Build); 106BuildEngine4.RegisterTaskObject(s_cacheKey, new CacheEntry(lastWrite, success), RegisteredTaskObjectLifetime.Build, allowEarlyCollection: true);
src\LocateDotNet.cs (2)
50var cachedResult = (CacheEntry)BuildEngine4.GetRegisteredTaskObject(s_cacheKey, RegisteredTaskObjectLifetime.Build); 80BuildEngine4.RegisterTaskObject(s_cacheKey, new CacheEntry(lastWrite, paths, DotNetPath), RegisteredTaskObjectLifetime.Build, allowEarlyCollection: true);
src\SingleError.cs (2)
20var errorReportedSentinel = BuildEngine4.GetRegisteredTaskObject(key, RegisteredTaskObjectLifetime.Build); 27BuildEngine4.RegisterTaskObject(key, new object(), RegisteredTaskObjectLifetime.Build, allowEarlyCollection: true);
MSBuild (2)
OutOfProcTaskHostNode.cs (1)
819_registeredTaskObjectCache.DisposeCacheObjects(RegisteredTaskObjectLifetime.Build);
RegisteredTaskObjectCacheBase.cs (1)
125case RegisteredTaskObjectLifetime.Build: