Could not load file or assembly 'System.Diagnostics.EventLog
gumbarros opened this issue · 2 comments
gumbarros commented
Describe the bug
Could not load file or assembly 'System.Diagnostics.EventLog, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.
To Reproduce
- Run LightRazor on .NET Framework 4.8
Expected behavior
Compiled HTML from Engine.CompileRenderAsync(template, model).Result;
Information (please complete the following information):
- OS: Windows 11
- Platform .NET Framework 4.8
- RazorLight version 2.0.0
- Are you using the OFFICIAL RazorLight package? Yes
- Visual Studio 22
gumbarros commented
Already added
.AddMetadataReferences(MetadataReference.CreateFromFile(Assembly.GetExecutingAssembly().Location))
and no success
gumbarros commented
Solved installing System.Diagnostics.EventLog at the parent project