【问题标题】:csproj from VS2008 fail to compile with mono xbuild来自 VS2008 的 csproj 无法使用 mono xbuild 编译
【发布时间】:2010-07-05 14:17:10
【问题描述】:

我在 CentOS 上使用从源代码编译的 Mono 2.6.4 在 C# 中编译 VS2008 项目。 一些 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

有人有想法吗?谢谢 ?

【问题讨论】:

    标签: c# mono csproj xbuild


    【解决方案1】:

    这可能已经在 svn 中修复了。一段时间后,我更改了该代码以使用正则表达式。你可以用单声道每日构建来试试这个 [1] 吗?或者只是在项目文件中提交一个错误,我会检查它。

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

    【讨论】:

    【解决方案2】:

    这可能是 xbuild 中的一个错误。使用测试用例提交错误以修复它:

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

    【讨论】:

      猜你喜欢
      • 2011-02-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多