Visual Studio yellow bar error when changing the build configuration from AnyCPU to x64 and vice-versa

I have been struggling with this issue for what feels like years now. I made some progress on this today:

Turn off Allow parallel project initialization in: Tools > Options > Projects and Solutions > General

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store