Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
juliansangillo opened this issue Sep 23, 2022 · 0 comments

Comments

@juliansangillo
Copy link

juliansangillo commented Sep 23, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant