Fixing this by checking for diagnostic errors before continuing. Fix #2692 Fix #2942
Added E2E tests for dotnet test interactions with an adapter (design time).