Hello Microsoft Team,
I starting some PoC C# projects (Windows 10 & VS2019) I would like to create Windows Service application which implementing multiple target .NET frameworks (.Net[Core3.1, .Net Standard2.0 and .Net framework4.8) as shows below:
It was able successfully to compiled and built but once Windows Service Started and calling .Net stanadard assembly module (2) then I’m facing runtime two issues
System.IO.FileNotFoundException: Could not load file or assembly ‘System.Runtime, Version=22.214.171.124’ or one of its dependencies
I tried overcome it by changing Assembly Binding configuration in .net48 project and it seems workig well. And then I re-started the whole process again and facing another issue.
System.BadImageFormatException: Could not load file or assembly ‘System.Runtime, Version=126.96.36.199, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ or one of its dependencies.
It seems I’m having a problem with runtime conflict because I mixed multiple target .NET together.
I did some research but their answer didn’t help much.
So any suggestion/documents/articles to help me understand more about this runtime issue that would help me a lot.