我使用Mono 2.6.4从CentOS上的Source编译来编译C#中的VS2008项目。某些CSPROJ编译,但这不是,这是Xbuild /t的输出:详细信息:

/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

有人有主意吗?谢谢 ?

有帮助吗?

解决方案

这可能已经在SVN中固定。我将该代码更改为一段时间后使用Regex。您能用每日构建[1]尝试一下吗?或者只是向项目文件提交错误,我将检查。

  1. http://mono.ximian.com/daily/

其他提示

这可能是Xbuild中的错误。将错误提交给测试用例以将其修复:

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top