diff --git a/ref/Microsoft.Build/net/Microsoft.Build.cs b/ref/Microsoft.Build/net/Microsoft.Build.cs index b7c9a8e40e5..147305e312c 100644 --- a/ref/Microsoft.Build/net/Microsoft.Build.cs +++ b/ref/Microsoft.Build/net/Microsoft.Build.cs @@ -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 targetResults) { throw null; } diff --git a/ref/Microsoft.Build/netstandard/Microsoft.Build.cs b/ref/Microsoft.Build/netstandard/Microsoft.Build.cs index 5e7b0352732..395d69a8f6e 100644 --- a/ref/Microsoft.Build/netstandard/Microsoft.Build.cs +++ b/ref/Microsoft.Build/netstandard/Microsoft.Build.cs @@ -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 targetResults) { throw null; } diff --git a/src/Build/BackEnd/Components/ProjectCache/CacheResult.cs b/src/Build/BackEnd/Components/ProjectCache/CacheResult.cs index af194e45728..7f8a69ecbbd 100644 --- a/src/Build/BackEnd/Components/ProjectCache/CacheResult.cs +++ b/src/Build/BackEnd/Components/ProjectCache/CacheResult.cs @@ -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) { diff --git a/src/Build/BackEnd/Components/ProjectCache/ProjectCachePluginBase.cs b/src/Build/BackEnd/Components/ProjectCache/ProjectCachePluginBase.cs index 2fe895fe150..5cf28808582 100644 --- a/src/Build/BackEnd/Components/ProjectCache/ProjectCachePluginBase.cs +++ b/src/Build/BackEnd/Components/ProjectCache/ProjectCachePluginBase.cs @@ -10,6 +10,7 @@ namespace Microsoft.Build.Experimental.ProjectCache { /// /// 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. /// public abstract class ProjectCachePluginBase {