The issue is now fixed with the latest release of Visual Studio 2019: version 16.2.5: https://docs.microsoft.com/en-us/visualstudio/releases/2019/release-notes#16.2.5
The issue would only to happen when:
- you have the web.config file for your project open in Visual Studio.
So the workaround for was:
- if you have the error, make sure you close the web.config file and you will be able to scaffold controllers.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…