csnemes / tracer

Tracing rewriter using Fody
Apache License 2.0
93 stars 26 forks source link

Could not load file or assembly 'Mono.Cecil, Version=0.11.0.0'. The system cannot find the file specified. #116

Open juliansangillo opened 2 years ago

juliansangillo commented 2 years ago

Target Framework: .NET 5 Tracer.Fody Version: 3.3.1

After following the docs to create a custom logging adapter, I used nuget to install both the custom adapter and the Tracer.Fody package into my main project. After attempting to run the app, the following error occurs during build.

Fody: An unhandled exception occurred:
Exception:
Could not load file or assembly 'Mono.Cecil, Version=0.11.0.0, Culture=neutral, PublicKeyToken=1ca091877d12ca03'. The system cannot find the file specified.
Type:
System.IO.FileNotFoundException
StackTrace:
   at InnerWeaver.Execute()
   at Processor.ExecuteInOwnAssemblyLoadContext() in C:\projects\fody\Fody\Processor.cs:line 148
   at Processor.Inner() in C:\projects\fody\Fody\Processor.cs:line 122
   at Processor.Execute() in C:\projects\fody\Fody\Processor.cs:line 50
Source:
FodyIsolated
TargetSite:
Void Execute()

I attempted to also install the latest Mono.Cecil version 0.11.4 but it didn't work. I then tried to downgrade the version to 0.11.0 since that seems to be what the error is complaining about but it still doesn't work.