level 5
BeWithU
楼主
操作步骤:XLua-generate code-hotfix injet in editor

报错内容:
Error:Exception! System.IO.FileNotFoundException: Could not find file "D:\BaiduNetdiskDownload\XluaProjects\XluaProjects\FishingJoy\Library\ScriptAssemblies\Assembly-CSharp.dll.mdb"
File name: 'D:\BaiduNetdiskDownload\XluaProjects\XluaProjects\FishingJoy\Library\ScriptAssemblies\Assembly-CSharp.dll.mdb'
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0019e] in <006b4c61a0c541e4895e5ddb7a911e51>:0
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean isAsync, System.Boolean anonymous) [0x00000] in <006b4c61a0c541e4895e5ddb7a911e51>:0
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access) [0x00000] in <006b4c61a0c541e4895e5ddb7a911e51>:0
at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess)
at Mono.CompilerServices.SymbolWriter.MonoSymbolFile.ReadSymbolFile (System.String mdbFilename) [0x00000] in <bd2e6973792945b0b952cd20bf283393>:0
at Mono.CompilerServices.SymbolWriter.MonoSymbolFile.ReadSymbolFile (System.String mdbFilename, System.Guid assemblyGuid) [0x00000] in <bd2e6973792945b0b952cd20bf283393>:0
at Mono.Cecil.Mdb.MdbReaderProvider.GetSymbolReader (Mono.Cecil.ModuleDefinition module, System.String fileName) [0x00012] in <bd2e6973792945b0b952cd20bf283393>:0
at Mono.Cecil.ModuleReader.ReadSymbols (Mono.Cecil.ModuleDefinition module, Mono.Cecil.ReaderParameters parameters) [0x00032] in <ddc74ac6377f40158725326bbb9ceb25>:0
at Mono.Cecil.ModuleReader.CreateModuleFrom (Mono.Cecil.PE.Image image, Mono.Cecil.ReaderParameters parameters) [0x0007d] in <ddc74ac6377f40158725326bbb9ceb25>:0
at Mono.Cecil.ModuleDefinition.ReadModule (System.IO.Stream stream, Mono.Cecil.ReaderParameters parameters) [0x00028] in <ddc74ac6377f40158725326bbb9ceb25>:0
at Mono.Cecil.ModuleDefinition.ReadModule (System.String fileName, Mono.Cecil.ReaderParameters parameters) [0x0000a] in <ddc74ac6377f40158725326bbb9ceb25>:0
at Mono.Cecil.AssemblyDefinition.ReadAssembly (System.String fileName, Mono.Cecil.ReaderParameters parameters) [0x00000] in <ddc74ac6377f40158725326bbb9ceb25>:0
at XLua.Hotfix.HotfixInject (System.String inject_assembly_path, System.Collections.Generic.IEnumerable`1[T] search_directorys, System.String id_map_file_path, System.Collections.Generic.IEnumerable`1[T] cfg_check_types) [0x00012] in <23868354ed5343018cdd5cfb7cbeb293>:0
报错代码:

UnityEngine.Debug:Log (object)
XLua.Hotfix:HotfixInject (string) (at Assets/XLua/Src/Editor/Hotfix.cs:1765)
XLua.Hotfix:HotfixInject () (at Assets/XLua/Src/Editor/Hotfix.cs:1656)
2024年12月25日 15点12分
1

报错内容:Error:Exception! System.IO.FileNotFoundException: Could not find file "D:\BaiduNetdiskDownload\XluaProjects\XluaProjects\FishingJoy\Library\ScriptAssemblies\Assembly-CSharp.dll.mdb"
File name: 'D:\BaiduNetdiskDownload\XluaProjects\XluaProjects\FishingJoy\Library\ScriptAssemblies\Assembly-CSharp.dll.mdb'
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0019e] in <006b4c61a0c541e4895e5ddb7a911e51>:0
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean isAsync, System.Boolean anonymous) [0x00000] in <006b4c61a0c541e4895e5ddb7a911e51>:0
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access) [0x00000] in <006b4c61a0c541e4895e5ddb7a911e51>:0
at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess)
at Mono.CompilerServices.SymbolWriter.MonoSymbolFile.ReadSymbolFile (System.String mdbFilename) [0x00000] in <bd2e6973792945b0b952cd20bf283393>:0
at Mono.CompilerServices.SymbolWriter.MonoSymbolFile.ReadSymbolFile (System.String mdbFilename, System.Guid assemblyGuid) [0x00000] in <bd2e6973792945b0b952cd20bf283393>:0
at Mono.Cecil.Mdb.MdbReaderProvider.GetSymbolReader (Mono.Cecil.ModuleDefinition module, System.String fileName) [0x00012] in <bd2e6973792945b0b952cd20bf283393>:0
at Mono.Cecil.ModuleReader.ReadSymbols (Mono.Cecil.ModuleDefinition module, Mono.Cecil.ReaderParameters parameters) [0x00032] in <ddc74ac6377f40158725326bbb9ceb25>:0
at Mono.Cecil.ModuleReader.CreateModuleFrom (Mono.Cecil.PE.Image image, Mono.Cecil.ReaderParameters parameters) [0x0007d] in <ddc74ac6377f40158725326bbb9ceb25>:0
at Mono.Cecil.ModuleDefinition.ReadModule (System.IO.Stream stream, Mono.Cecil.ReaderParameters parameters) [0x00028] in <ddc74ac6377f40158725326bbb9ceb25>:0
at Mono.Cecil.ModuleDefinition.ReadModule (System.String fileName, Mono.Cecil.ReaderParameters parameters) [0x0000a] in <ddc74ac6377f40158725326bbb9ceb25>:0
at Mono.Cecil.AssemblyDefinition.ReadAssembly (System.String fileName, Mono.Cecil.ReaderParameters parameters) [0x00000] in <ddc74ac6377f40158725326bbb9ceb25>:0
at XLua.Hotfix.HotfixInject (System.String inject_assembly_path, System.Collections.Generic.IEnumerable`1[T] search_directorys, System.String id_map_file_path, System.Collections.Generic.IEnumerable`1[T] cfg_check_types) [0x00012] in <23868354ed5343018cdd5cfb7cbeb293>:0
报错代码:

UnityEngine.Debug:Log (object)XLua.Hotfix:HotfixInject (string) (at Assets/XLua/Src/Editor/Hotfix.cs:1765)
XLua.Hotfix:HotfixInject () (at Assets/XLua/Src/Editor/Hotfix.cs:1656)