csproj из VS2008 не скомпилируется с помощью mono xbuild

Я использую Mono 2.6.4, скомпилированную из исходников на CentOS, для компиляции проекта VS2008 на C#. Некоторые csproj компилируются, но этот нет, вот вывод xbuild /t:detailed :

/opt/mono-2.6.4/lib/mono/2.0/Microsoft.CSharp.targets: error : Error executing task Csc: Input string was not in the correct format
                Error executing task Csc: System.FormatException: Input string was not in the correct format
  at System.Int32.Parse (System.String s) [0x00000] in <filename unknown>:0
  at Microsoft.Build.Utilities.ToolTask.ParseOrigin (System.String origin, System.String& filename, System.Int32& lineNumber, System.Int32& columnNumber, System.Int32& endLineNumber, System.Int32& endColumnNumber) [0x00000] in <filename unknown>:0
  at Microsoft.Build.Utilities.ToolTask.LogEventsFromTextOutput (System.String singleLine, MessageImportance importance) [0x00000] in <filename unknown>:0
  at Microsoft.Build.Utilities.ToolTask.ProcessOutputFile (System.String filename, MessageImportance importance) [0x00000] in <filename unknown>:0
  at Microsoft.Build.Utilities.ToolTask.ExecuteTool (System.String pathToTool, System.String responseFileCommands, System.String commandLineCommands) [0x00000] in <filename unknown>:0
  at Microsoft.Build.Utilities.ToolTask.Execute () [0x00000] in <filename unknown>:0
  at Microsoft.Build.BuildEngine.TaskEngine.Execute () [0x00000] in <filename unknown>:0
  at Microsoft.Build.BuildEngine.BuildTask.Execute () [0x00000] in <filename unknown>:0
        Task "Csc" execution -- FAILED
        Done building target "CoreCompile" in project "/mnt/virtualbox/Project/(API)/Base/Base.csproj".-- FAILED

OnError for target CoreBuild skipped due to false condition:  '$(RunPostBuildEvent)' == 'Always' or '$(RunPostBuildEvent)' == 'OnOutputUpdated'
        Target _GetCompileOutputsForClean:
        Done building target "_GetCompileOutputsForClean" in project "/mnt/virtualbox/Project/(API)/Base/Base.csproj".

        Target _RecordCleanFile:
        Done building target "_RecordCleanFile" in project "/mnt/virtualbox/Project/(API)/Base/Base.csproj".

Done building project "/mnt/virtualbox/Project/(API)/Base/Base.csproj".-- FAILED

У кого-нибудь есть идея? Спасибо ?


person hokkos    schedule 05.07.2010    source источник


Ответы (2)


Возможно, это уже исправлено в svn. Я изменил этот код, чтобы использовать регулярное выражение некоторое время назад. Не могли бы вы попробовать это с моно ежедневной сборкой [1]? Или просто сообщите об ошибке в файле проекта, и я проверю ее.

  1. http://mono.ximian.com/daily/
person radical    schedule 05.07.2010
comment
Похоже на ту же проблему: bugzilla.novell.com/show_bug.cgi?id=594541 уже исправлено в svn. - person radical; 06.07.2010

Вероятно, это ошибка в xbuild. Сообщите об ошибке с тестовым примером, чтобы исправить ее:

http://www.mono-project.com/Bugs

person jpobst    schedule 05.07.2010