Check the .csproj File: Make sure that the paths to the NuGet packages are correct and that they are included for both target frameworks. You might need to add conditional references if the paths differ between frameworks.