Details: project is running on Windows 11. Running from Visual Studio 2022, everything is working. Using Microsoft Installer project to deploy on same machine, I get the error mentioned in the title.
In project file, targeted framework is:
<TargetFramework>net8.0-windows7.0</TargetFramework>
Here is a screenshot of project properties:
I followed all recommended items including adding Window Compatibility, downgrading EventLog and Hosting to 6.0.0.0, etc nothing seems to work. Also tried running the dll via dotnet with same problem.
Added Microsoft.Extensions.Logging.EventLog
nuget package and changed configuration to use this. Nothing is working