Browse Source

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
shortcuts
Daniel Grunwald 19 years ago
parent
commit
456847adde
  1. 9
      src/Libraries/ICSharpCode.Build.Tasks/Project/FxCop.cs

9
src/Libraries/ICSharpCode.Build.Tasks/Project/FxCop.cs

@ -250,8 +250,12 @@ namespace ICSharpCode.Build.Tasks @@ -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 @@ -274,6 +278,9 @@ namespace ICSharpCode.Build.Tasks
AppendSwitch(b, "ruleid", rule);
}
}
#if DEBUG
Console.WriteLine(b.ToString());
#endif
return b.ToString();
}
}

Loading…
Cancel
Save