0

当我尝试编译解决方案时,出现此错误:

Error CS1902: Invalid debug option `+'. Valid options are `full' or `pdbonly' (CS1902) (TAG)

查看来自 IDE 的错误:

MonoDevelop 编译错误

有关此错误的更多信息:

MonoDoc exited with a exit code = 1.

结束我不知道这是否与另一个错误有关,当我运行时monodoc

$ monodoc
grep: /etc/gre.d/*.conf: Arquivo ou diretório não encontrado (file or directory not found)

Unhandled Exception:
System.TypeLoadException: Could not load type 'Monodoc.EditMerger' from assembly 'monodoc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756'.
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: Could not load type 'Monodoc.EditMerger' from assembly 'monodoc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756'.
4

1 回答 1

1

Seems it's well-known problem. If you are using your custom Makefile for compilation just remove "+" key from it. Like here: https://github.com/OpenRA/OpenRA/pull/2596/files

This is affected only for compilation debug version, so you can change target from "Debug|x86" to "Release|x86" (at least it helps for me).

于 2013-04-26T10:30:52.823 回答