Actually, .NET 5.0 is able to work with both .NET Core and .NET Framework assemblies at the same time, so DLL from any folder should work without difference. But theoretically, the assembly from ‘dotnetcodeapp2.1’ should perform better in .NET 5.0.