diff options
author | Marek Safar <marek.safar@gmail.com> | 2014-08-25 16:00:05 +0400 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2014-08-25 16:00:05 +0400 |
commit | 60d9c66011594d2572c3cda163da8beb8d6b999d (patch) | |
tree | 80839c3e3121fef465ecf11f39523b24953c5406 /mcs/class/Microsoft.Build.Framework | |
parent | 8c5488e79c5bc5a66c9087191ddbda6a663d5f5a (diff) |
[msbuild] corcompare public API
Diffstat (limited to 'mcs/class/Microsoft.Build.Framework')
4 files changed, 13 insertions, 8 deletions
diff --git a/mcs/class/Microsoft.Build.Framework/Microsoft.Build.Framework/BuildEventArgs.cs b/mcs/class/Microsoft.Build.Framework/Microsoft.Build.Framework/BuildEventArgs.cs index c23e7427cce..20566ffe215 100644 --- a/mcs/class/Microsoft.Build.Framework/Microsoft.Build.Framework/BuildEventArgs.cs +++ b/mcs/class/Microsoft.Build.Framework/Microsoft.Build.Framework/BuildEventArgs.cs @@ -83,6 +83,11 @@ namespace Microsoft.Build.Framework get { return message; } +#if NET_4_0 + protected set { + message = value; + } +#endif } public string SenderName { diff --git a/mcs/class/Microsoft.Build.Framework/Microsoft.Build.Framework/BuildEventContext.cs b/mcs/class/Microsoft.Build.Framework/Microsoft.Build.Framework/BuildEventContext.cs index 2a550f46dc3..f65feb38485 100644 --- a/mcs/class/Microsoft.Build.Framework/Microsoft.Build.Framework/BuildEventContext.cs +++ b/mcs/class/Microsoft.Build.Framework/Microsoft.Build.Framework/BuildEventContext.cs @@ -26,12 +26,12 @@ namespace Microsoft.Build.Framework { } - public BuildEventContext (int nodeId, int projectInstanceId, int targetId, int projectContextId, int taskId) - : this (rnd.Next (), nodeId, projectInstanceId, targetId, projectContextId, taskId) + public BuildEventContext (int nodeId, int projectInstanceId, int projectContextId, int targetId, int taskId) + : this (rnd.Next (), nodeId, projectInstanceId, projectContextId, targetId, taskId) { } - public BuildEventContext (int submissionId, int nodeId, int projectInstanceId, int targetId, int projectContextId, int taskId) + public BuildEventContext (int submissionId, int nodeId, int projectInstanceId, int projectContextId, int targetId, int taskId) { SubmissionId = submissionId; NodeId = nodeId; @@ -56,9 +56,9 @@ namespace Microsoft.Build.Framework public int TaskId { get; private set; } // MSDN document says "true if the references are equal, false otherwise." but that doesn't make sense. - public override bool Equals (object other) + public override bool Equals (object obj) { - var o = other as BuildEventContext; + var o = obj as BuildEventContext; return (object) o != null && o.NodeId == NodeId && o.ProjectContextId == ProjectContextId && diff --git a/mcs/class/Microsoft.Build.Framework/Microsoft.Build.Framework/LazyFormattedBuildEventArgs.cs b/mcs/class/Microsoft.Build.Framework/Microsoft.Build.Framework/LazyFormattedBuildEventArgs.cs index ad629ec180a..26a0306278a 100644 --- a/mcs/class/Microsoft.Build.Framework/Microsoft.Build.Framework/LazyFormattedBuildEventArgs.cs +++ b/mcs/class/Microsoft.Build.Framework/Microsoft.Build.Framework/LazyFormattedBuildEventArgs.cs @@ -32,7 +32,7 @@ using System; namespace Microsoft.Build.Framework { [Serializable] - public abstract class LazyFormattedBuildEventArgs : BuildEventArgs { + public class LazyFormattedBuildEventArgs : BuildEventArgs { string message, format; object[] args; diff --git a/mcs/class/Microsoft.Build.Framework/Microsoft.Build.Framework/RegisteredTaskObjectLifetime.cs b/mcs/class/Microsoft.Build.Framework/Microsoft.Build.Framework/RegisteredTaskObjectLifetime.cs index 121107824cc..e8ecdaecf04 100644 --- a/mcs/class/Microsoft.Build.Framework/Microsoft.Build.Framework/RegisteredTaskObjectLifetime.cs +++ b/mcs/class/Microsoft.Build.Framework/Microsoft.Build.Framework/RegisteredTaskObjectLifetime.cs @@ -3,8 +3,8 @@ namespace Microsoft.Build.Framework { public enum RegisteredTaskObjectLifetime { - AppDomain, - Build + Build, + AppDomain } } #endif |