VS 2022 fails to generate required .pdb files to build the solution

  .net-core, c++, pdb-files, visual-studio, windows

When I attempt to build a solution in VS 2022, I constantly get a MSB3030 error. Visual Studio is attempting to copy a .pdb file that does not exist.

Is there an easy way to generate these files for the solution? The .pdb files are for the local projects and not for remote dependencies.

Source: Windows Questions