the issue you are facing is due to the framework incompatibility. .net framework can't be referenced from .net core
the cleaner way i see is to create a .net standard library and share between .net framework and .net core