question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Method 'WriteModule' in type 'Mono.Cecil.Pdb.NativePdbWriter' from assembly 'Mono.Cecil.Pdb, Version=0.10.0.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e' does not have an implementation.

See original GitHub issue

After upgrade Visual Studio 2017 to new version 15.6.2 I started to get this error.

3>    Fody: Fody (version 2.0.0.0) Executing
3>      Fody/Costura:   	No reference to 'Costura.dll' found. References not modified.
3>      Fody/Costura:   	Embedding 'C:\Work\ModulKassa\ModulPos\Libs\Microsoft.Deployment.Compression.Cab.dll'
3>      Fody/Costura:   	Embedding 'C:\Work\ModulKassa\ModulPos\Libs\Microsoft.Deployment.Compression.dll'
3>      Fody/Costura:   	Embedding 'C:\Work\ModulKassa\ModulPos\Libs\Microsoft.Deployment.WindowsInstaller.dll'
3>      Fody/Costura:   	Embedding 'C:\Work\ModulKassa\ModulPos\Libs\Microsoft.Deployment.WindowsInstaller.Package.dll'
3>      Fody/Costura:   	Embedding 'C:\Work\ModulKassa\ModulPos\StdCommon\bin\Debug\netstandard1.4\StdCommon.dll'
3>      Fody/Costura:   	Embedding 'C:\Work\ModulKassa\ModulPos\WPFModulPOS.Common\bin\Debug\WPFModulPOS.Common.dll'
3>MSBUILD : error : Fody: An unhandled exception occurred:
3>MSBUILD : error : Exception:
3>MSBUILD : error : Method 'WriteModule' in type 'Mono.Cecil.Pdb.NativePdbWriter' from assembly 'Mono.Cecil.Pdb, Version=0.10.0.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e' does not have an implementation.
3>MSBUILD : error : StackTrace:
3>MSBUILD : error :    at Mono.Cecil.Pdb.NativePdbWriterProvider.GetSymbolWriter(ModuleDefinition module, String fileName)
3>MSBUILD : error :    at Mono.Cecil.Pdb.PdbWriterProvider.GetSymbolWriter(ModuleDefinition module, String fileName)
3>MSBUILD : error :    at Mono.Cecil.ModuleWriter.GetSymbolWriter(ModuleDefinition module, String fq_name, ISymbolWriterProvider symbol_writer_provider, WriterParameters parameters)
3>MSBUILD : error :    at Mono.Cecil.ModuleWriter.Write(ModuleDefinition module, Disposable`1 stream, WriterParameters parameters)
3>MSBUILD : error :    at Mono.Cecil.ModuleWriter.WriteModule(ModuleDefinition module, Disposable`1 stream, WriterParameters parameters)
3>MSBUILD : error :    at Mono.Cecil.ModuleDefinition.Write(String fileName, WriterParameters parameters)
3>MSBUILD : error :    at InnerWeaver.WriteModule() in C:\projects\fody\FodyIsolated\ModuleWriter.cs:line 18
3>MSBUILD : error :    at InnerWeaver.Execute() in C:\projects\fody\FodyIsolated\InnerWeaver.cs:line 86
3>MSBUILD : error : Source:
3>MSBUILD : error : Mono.Cecil.Pdb
3>MSBUILD : error : TargetSite:
3>MSBUILD : error : Mono.Cecil.Cil.ISymbolWriter GetSymbolWriter(Mono.Cecil.ModuleDefinition, System.String)
3>MSBUILD : error : 
3>    Fody:   Finished Fody 41ms.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:15 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
SimonCroppcommented, Apr 4, 2018

@Zagrophyte seem to be fixed in version 2 of costura. can u verify

0reactions
Zagrophytecommented, Apr 4, 2018

@SimonCropp Indeed it does! Updating to Fody 3.0.0 with Costura 2.0.0 successfully builds in VS2017. Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found