2017-09-02 84 views
0

我最近試圖構建一個xamarin項目並得到了一個Project.dll.mdb找不到錯誤。我通過更新到最新版本Xamarin.Forms解決了這個問題。現在,我得到這個新的錯誤,我懷疑是涉及到PDB和mdb:Fody:發生了未處理的異常

MSBUILD : error : Fody: An unhandled exception occurred: 
MSBUILD : error : Exception: 
MSBUILD : error : Index was outside the bounds of the array. 
MSBUILD : error : StackTrace: 
MSBUILD : error : at Microsoft.Cci.Pdb.BitAccess.ReadInt32 (System.Int32& value) [0x00000] in <d39e61ae2787473a851567b860d13696>:0 
MSBUILD : error : at Microsoft.Cci.Pdb.BitAccess.ReadInt32 (System.Int32[] values) [0x00004] in <d39e61ae2787473a851567b860d13696>:0 
MSBUILD : error : at Microsoft.Cci.Pdb.MsfDirectory..ctor (Microsoft.Cci.Pdb.PdbReader reader, Microsoft.Cci.Pdb.PdbFileHeader head, Microsoft.Cci.Pdb.BitAccess bits) [0x000ae] in <d39e61ae2787473a851567b860d13696>:0 
MSBUILD : error : at Microsoft.Cci.Pdb.PdbFile.LoadFunctions (System.IO.Stream read, System.Collections.Generic.Dictionary`2[System.UInt32,Microsoft.Cci.Pdb.PdbTokenLine]& tokenToSourceMapping, System.String& sourceServerData, System.Int32& age, System.Guid& guid) [0x00027] in <d39e61ae2787473a851567b860d13696>:0 
MSBUILD : error : at Mono.Cecil.Pdb.PdbReader.PopulateFunctions() [0x00008] in <d39e61ae2787473a851567b860d13696>:0 
MSBUILD : error : at Mono.Cecil.Pdb.PdbReader.ProcessDebugHeader (Mono.Cecil.Cil.ImageDebugDirectory directory, System.Byte[] header) [0x00048] in <d39e61ae2787473a851567b860d13696>:0 
MSBUILD : error : at Mono.Cecil.ModuleDefinition.ProcessDebugHeader() [0x00012] in <b5a52cab1f0046ce9f68342127787868>:0 
MSBUILD : error : at Mono.Cecil.ModuleDefinition.ReadSymbols (Mono.Cecil.Cil.ISymbolReader reader) [0x00015] in <b5a52cab1f0046ce9f68342127787868>:0 
MSBUILD : error : at Mono.Cecil.ModuleReader.ReadSymbols (Mono.Cecil.ModuleDefinition module, Mono.Cecil.ReaderParameters parameters) [0x00047] in <b5a52cab1f0046ce9f68342127787868>:0 
MSBUILD : error : at Mono.Cecil.ModuleReader.CreateModuleFrom (Mono.Cecil.PE.Image image, Mono.Cecil.ReaderParameters parameters) [0x00076] in <b5a52cab1f0046ce9f68342127787868>:0 
MSBUILD : error : at Mono.Cecil.ModuleDefinition.ReadModule (System.IO.Stream stream, Mono.Cecil.ReaderParameters parameters) [0x00028] in <b5a52cab1f0046ce9f68342127787868>:0 
MSBUILD : error : at Mono.Cecil.ModuleDefinition.ReadModule (System.String fileName, Mono.Cecil.ReaderParameters parameters) [0x0000a] in <b5a52cab1f0046ce9f68342127787868>:0 
MSBUILD : error : at InnerWeaver.ReadModule() [0x00054] in <1733edda69ed46a983dfb90261345c6a>:0 
MSBUILD : error : at InnerWeaver.Execute() [0x00019] in <1733edda69ed46a983dfb90261345c6a>:0 
MSBUILD : error : Source: 
MSBUILD : error : Mono.Cecil.Pdb 
MSBUILD : error : TargetSite: 
MSBUILD : error : Void ReadInt32(Int32 ByRef) 
MSBUILD : error : 

我很新在Xamarin,所以任何幫助表示讚賞。謝謝。

+0

「Microsoft.Cci.Pdb.PdbReader」會建議我清理解決方案,刪除bin和OBJ文件夾,然後重新編譯 –

+0

我這樣做,仍然得到同樣的錯誤 –

回答

2

有時候我有PropertyChanged.Fody出錯(我不知道它是否是你使用的「Fody」)。取出包,並重新安裝,錯誤應該消失

+0

呀,有舊版本的PropertyChanged.Fody更新解決了錯誤。謝謝你指點我正確的方向! –

相關問題