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

Developer technologies | Windows Presentation Foundation
Developer technologies | .NET | Other
Developer technologies | C#
Developer technologies | 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.
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.