From 456847adde96402b45daa1f5985e62a4e744be77 Mon Sep 17 00:00:00 2001 From: Daniel Grunwald Date: Wed, 18 Jul 2007 20:12:36 +0000 Subject: [PATCH] Fixed SD2-1365: FxCop can't start if project's name contains spaces git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2614 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61 --- src/Libraries/ICSharpCode.Build.Tasks/Project/FxCop.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Libraries/ICSharpCode.Build.Tasks/Project/FxCop.cs b/src/Libraries/ICSharpCode.Build.Tasks/Project/FxCop.cs index fc855587df..a57ed35fc8 100644 --- a/src/Libraries/ICSharpCode.Build.Tasks/Project/FxCop.cs +++ b/src/Libraries/ICSharpCode.Build.Tasks/Project/FxCop.cs @@ -250,8 +250,12 @@ namespace ICSharpCode.Build.Tasks } } - protected override string GenerateResponseFileCommands() + //protected override string GenerateResponseFileCommands() + protected override string GenerateCommandLineCommands() { + // using a response file fails when the a path contains spaces, but using the command line + // works fine (FxCop bug?) + StringBuilder b = new StringBuilder(); AppendSwitch(b, "o", realLogFile); AppendSwitch(b, "f", inputAssembly); @@ -274,6 +278,9 @@ namespace ICSharpCode.Build.Tasks AppendSwitch(b, "ruleid", rule); } } + #if DEBUG + Console.WriteLine(b.ToString()); + #endif return b.ToString(); } }