I removed the problematic project from the solution, rebuilt it, and then added it back. The issue was resolved!