Assemblies are not 1:1 between NET Core and NET Framework. You need to identify what specific type(s) you are dependent on in System.EnterpriseServices
. Then go to the docs and find the type. Ensure the version is set to NET 8.0 and it'll show you what package you need to include. Note that not all types are supported in NET Core so there may be cases where you have to use alternatives instead.
The error itself indicates that you are still referencing the original System.EnterpriseServices
assembly so remove that from your project's dependencies. If you don't directly reference it then something you are referencing does and you'll need to fix that dependency as well.