Backwards accuracy.
authorMicah Zoltu <micah@zoltu.net>
Thu, 10 Jul 2014 18:01:35 +0000 (11:01 -0700)
committerMicah Zoltu <micah@zoltu.net>
Thu, 10 Jul 2014 18:01:35 +0000 (11:01 -0700)
The method is only public in .NET 4+, previously it was protected.  Wrapping the access modifier in a #if NET_4_0 ensures that when building .NET 2, it is protected but when building 4+ it is public.

mcs/class/Microsoft.Build.Utilities/Microsoft.Build.Utilities/CommandLineBuilder.cs

index 73353fe241a79c5a062a3b3c9d99aee7cc99e079..1a8fac12b7c7c396b3dccb87b97ce000c4cb3183 100644 (file)
@@ -328,8 +328,13 @@ namespace Microsoft.Build.Utilities
                                }
                        }
                }
-               
-               public void AppendTextUnquoted (string textToAppend)
+
+#if NET_4_0
+               public
+#else
+               protected
+#endif
+               void AppendTextUnquoted (string textToAppend)
                {
                        commandLine.Append (textToAppend);
                }