Skip to content

Commit

Permalink
Make CircularDependencyExcpetion class public (#5988)
Browse files Browse the repository at this point in the history
The public ProjectGraph constructor mentions this type so it should also be public.

Closes #5811.
  • Loading branch information
tflynt91 authored Dec 23, 2020
1 parent 0e8461c commit a2c42ce
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions ref/Microsoft.Build/net/Microsoft.Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -889,6 +889,10 @@ public BuildAbortedException(string message, System.Exception innerException) {
[System.Security.Permissions.SecurityPermissionAttribute(System.Security.Permissions.SecurityAction.Demand, SerializationFormatter=true)]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
}
public partial class CircularDependencyException : System.Exception
{
protected CircularDependencyException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
}
public sealed partial class InternalLoggerException : System.Exception
{
public InternalLoggerException() { }
Expand Down
4 changes: 4 additions & 0 deletions ref/Microsoft.Build/netstandard/Microsoft.Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -888,6 +888,10 @@ public BuildAbortedException(string message, System.Exception innerException) {
public string ErrorCode { get { throw null; } }
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
}
public partial class CircularDependencyException : System.Exception
{
protected CircularDependencyException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
}
public sealed partial class InternalLoggerException : System.Exception
{
public InternalLoggerException() { }
Expand Down
4 changes: 2 additions & 2 deletions src/Build/BackEnd/Shared/CircularDependencyException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System;
using System.Runtime.Serialization;

namespace Microsoft.Build.BackEnd
namespace Microsoft.Build.Exceptions
{
/// <summary>
/// An exception representing the case where a BuildRequest has caused a circular project dependency. This is used to
Expand All @@ -14,7 +14,7 @@ namespace Microsoft.Build.BackEnd
/// If you add fields to this class, add a custom serialization constructor and override GetObjectData().
/// </remarks>
[Serializable]
internal class CircularDependencyException : Exception
public class CircularDependencyException : Exception
{
/// <summary>
/// Constructs a standard BuildAbortedException.
Expand Down

0 comments on commit a2c42ce

Please sign in to comment.