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#
{count} votes

Your answer

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