Эх сурвалжийг харах

mono使用的是mdb,加上编译选项

tanghai 9 жил өмнө
parent
commit
03fe34ac32
1 өөрчлөгдсөн 4 нэмэгдсэн , 0 устгасан
  1. 4 0
      Server/App/Program.cs

+ 4 - 0
Server/App/Program.cs

@@ -18,7 +18,11 @@ namespace App
 				Object.ObjectManager.Register("Base", typeof(Game).Assembly);
 				Object.ObjectManager.Register("Model", typeof(ErrorCode).Assembly);
 				byte[] dllBytes = File.ReadAllBytes("./Controller.dll");
+#if __MonoCS__
+				byte[] pdbBytes = File.ReadAllBytes("./Controller.dll.mdb");
+#else
 				byte[] pdbBytes = File.ReadAllBytes("./Controller.pdb");
+#endif
 				Assembly controller = Assembly.Load(dllBytes, pdbBytes);
 				Object.ObjectManager.Register("Controller", controller);