I upgraded Visual Studio from v17.12.3 to v17.13.2. That fixed the problem. Please don't ask me what caused it.