Skip to content

Commit

Permalink
Make CacheResult members public (#6201)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdmihai committed Mar 4, 2021
1 parent 4e8c57a commit 0def9d1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
3 changes: 3 additions & 0 deletions ref/Microsoft.Build/net/Microsoft.Build.cs
Expand Up @@ -1426,6 +1426,9 @@ public partial class CacheContext
public partial class CacheResult
{
internal CacheResult() { }
public Microsoft.Build.Execution.BuildResult BuildResult { get { throw null; } }
public Microsoft.Build.Experimental.ProjectCache.ProxyTargets ProxyTargets { get { throw null; } }
public Microsoft.Build.Experimental.ProjectCache.CacheResultType ResultType { get { throw null; } }
public static Microsoft.Build.Experimental.ProjectCache.CacheResult IndicateCacheHit(Microsoft.Build.Execution.BuildResult buildResult) { throw null; }
public static Microsoft.Build.Experimental.ProjectCache.CacheResult IndicateCacheHit(Microsoft.Build.Experimental.ProjectCache.ProxyTargets proxyTargets) { throw null; }
public static Microsoft.Build.Experimental.ProjectCache.CacheResult IndicateCacheHit(System.Collections.Generic.IReadOnlyCollection<Microsoft.Build.Experimental.ProjectCache.PluginTargetResult> targetResults) { throw null; }
Expand Down
3 changes: 3 additions & 0 deletions ref/Microsoft.Build/netstandard/Microsoft.Build.cs
Expand Up @@ -1420,6 +1420,9 @@ public partial class CacheContext
public partial class CacheResult
{
internal CacheResult() { }
public Microsoft.Build.Execution.BuildResult BuildResult { get { throw null; } }
public Microsoft.Build.Experimental.ProjectCache.ProxyTargets ProxyTargets { get { throw null; } }
public Microsoft.Build.Experimental.ProjectCache.CacheResultType ResultType { get { throw null; } }
public static Microsoft.Build.Experimental.ProjectCache.CacheResult IndicateCacheHit(Microsoft.Build.Execution.BuildResult buildResult) { throw null; }
public static Microsoft.Build.Experimental.ProjectCache.CacheResult IndicateCacheHit(Microsoft.Build.Experimental.ProjectCache.ProxyTargets proxyTargets) { throw null; }
public static Microsoft.Build.Experimental.ProjectCache.CacheResult IndicateCacheHit(System.Collections.Generic.IReadOnlyCollection<Microsoft.Build.Experimental.ProjectCache.PluginTargetResult> targetResults) { throw null; }
Expand Down
6 changes: 3 additions & 3 deletions src/Build/BackEnd/Components/ProjectCache/CacheResult.cs
Expand Up @@ -63,9 +63,9 @@ public class CacheResult
ProxyTargets = proxyTargets;
}

internal CacheResultType ResultType { get; }
internal BuildResult? BuildResult { get; }
internal ProxyTargets? ProxyTargets { get; }
public CacheResultType ResultType { get; }
public BuildResult? BuildResult { get; }
public ProxyTargets? ProxyTargets { get; }

public static CacheResult IndicateCacheHit(BuildResult buildResult)
{
Expand Down
Expand Up @@ -10,6 +10,7 @@ namespace Microsoft.Build.Experimental.ProjectCache
{
/// <summary>
/// Only one plugin instance can exist for a given BuildManager BeginBuild / EndBuild session.
/// Any exceptions thrown by the plugin will cause MSBuild to fail the build.
/// </summary>
public abstract class ProjectCachePluginBase
{
Expand Down

0 comments on commit 0def9d1

Please sign in to comment.