Fix tarball package build broken by 8f130a6e17c3729f32c3bf930941ab6587f6fe38
[mono.git] / mcs / tools / xbuild / Parameters.cs
index 4d168b36c8481bccf8083a191a3ac192f919994a..8ecaeccd42a9447c54ad5b6cbf336dc0e8a74da3 100644 (file)
@@ -25,7 +25,6 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
-#if NET_2_0
 
 using System;
 using System.IO;
@@ -102,10 +101,8 @@ namespace Mono.XBuild.CommandLine {
                                LoadResponseFile (responseFile);
                        }
                        foreach (string s in flatArguments) {
-                               if (s [0] != '/')
+                               if (s [0] != '/' || !ParseFlatArgument (s))
                                        remainingArguments.Add (s);
-                               else if (!ParseFlatArgument (s))
-                                       ReportError (1, "Unknown switch: " + s);
                        }
                        if (remainingArguments.Count == 0) {
                                string[] sln_files = Directory.GetFiles (Directory.GetCurrentDirectory (), "*.sln");
@@ -427,4 +424,3 @@ namespace Mono.XBuild.CommandLine {
        }
 }
 
-#endif