Permalink
Browse files

Fix for bz6389 - Absolute paths to project files cause error: 'MSBUIL…

…D0001: Unknown switch'
  • Loading branch information...
1 parent d7b4d23 commit cbcc4e73ddb0ef00796c5026efa150481b57214d @ianbattersby ianbattersby committed Aug 7, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 mcs/tools/xbuild/Parameters.cs
@@ -102,10 +102,8 @@ public void ParseArguments (string[] args)
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");

0 comments on commit cbcc4e7

Please sign in to comment.