System.IO.FileNotFoundException: 'Could not load file or assembly System.Diagnostics.EventLog

Jenish Patel 0 Reputation points
2023-09-04T05:48:07.8366667+00:00

I want to open a cash drawer in WPF using the .NET 7 framework. Firstly, I created the class library in.Net 4.5, and that reference was used in another class library from the same solution.

Note: Point of service is working fine only in .net framework 4.5, but I need to use it in my project, which is being used in .net framework 7.0.

CashDrawer1 project used by .Net Framework 4.5
ConsoleApp2 project used by .Net Framework 7.0User's image

User's image

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,347 questions
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,667 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,207 questions
{count} votes