in above case I would suggest this. Above file shows reference to UCMS_Surrogates_Rewrite.Domain.csproj can you please confirm if there is no library or package you're using under this project that might have a dependency on EntityFramework. If that package requires EntityFramework and it's not installed, you may see this error, can you verify under UCMS_Surrogates_Rewrite.Domain.csproj for all packages ?