19 references to Build
Microsoft.Build (5)
BackEnd\Components\Caching\RegisteredTaskObjectCache.cs (2)
39
ErrorUtilities.VerifyThrow(IsCollectionEmptyOrUncreated(RegisteredTaskObjectLifetime.
Build
), "Build lifetime objects were not disposed at the end of the build");
73
ErrorUtilities.VerifyThrow(IsCollectionEmptyOrUncreated(RegisteredTaskObjectLifetime.
Build
), "Build lifetime objects were not disposed at the end of the build");
BackEnd\Node\InProcNode.cs (1)
325
objectCache.DisposeCacheObjects(RegisteredTaskObjectLifetime.
Build
);
BackEnd\Node\OutOfProcNode.cs (1)
463
objectCache.DisposeCacheObjects(RegisteredTaskObjectLifetime.
Build
);
RegisteredTaskObjectCacheBase.cs (1)
125
case RegisteredTaskObjectLifetime.
Build
:
Microsoft.Build.Engine.UnitTests (2)
BackEnd\AssemblyLoadContextTestTasks.cs (2)
20
RegisteredTaskObjectLifetime.
Build
,
31
var 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)
194
object staticCacheDisposer = buildEngine4.GetRegisteredTaskObject(StaticSDKCacheKey, RegisteredTaskObjectLifetime.
Build
);
200
buildEngine4.RegisterTaskObject(StaticSDKCacheKey, staticDisposer, RegisteredTaskObjectLifetime.
Build
, allowEarlyCollection: false);
Microsoft.DotNet.Arcade.Sdk (6)
src\CheckRequiredDotNetVersion.cs (2)
56
var cachedResult = (CacheEntry)BuildEngine4.GetRegisteredTaskObject(s_cacheKey, RegisteredTaskObjectLifetime.
Build
);
106
BuildEngine4.RegisterTaskObject(s_cacheKey, new CacheEntry(lastWrite, success), RegisteredTaskObjectLifetime.
Build
, allowEarlyCollection: true);
src\LocateDotNet.cs (2)
50
var cachedResult = (CacheEntry)BuildEngine4.GetRegisteredTaskObject(s_cacheKey, RegisteredTaskObjectLifetime.
Build
);
80
BuildEngine4.RegisterTaskObject(s_cacheKey, new CacheEntry(lastWrite, paths, DotNetPath), RegisteredTaskObjectLifetime.
Build
, allowEarlyCollection: true);
src\SingleError.cs (2)
20
var errorReportedSentinel = BuildEngine4.GetRegisteredTaskObject(key, RegisteredTaskObjectLifetime.
Build
);
27
BuildEngine4.RegisterTaskObject(key, new object(), RegisteredTaskObjectLifetime.
Build
, allowEarlyCollection: true);
MSBuild (2)
OutOfProcTaskHostNode.cs (1)
819
_registeredTaskObjectCache.DisposeCacheObjects(RegisteredTaskObjectLifetime.
Build
);
RegisteredTaskObjectCacheBase.cs (1)
125
case RegisteredTaskObjectLifetime.
Build
: