I had a problem with a Visual Studio 2019 check in. Repo was in TFS. I had two view model folders, one for the back-end secure site, and one for the public front-end site. It got to the point of over 60 view models in each folder which made navigating the Solution Explorer quite cumbersome. I created a bunch of sub-folders and moved (clicked and dragged) the files to their appropriate folder. I didn't change the name spaces or class names. TFS marked the files as [add] (I'm not sure why). The solution compiled correctly, so I checked my files in. It ran successfully locally as well. I went to Azure DevOps to deploy my changes to our QA server only to find out the build failed. I looked at the build info and it had over 140 CS0101 errors: error CS0101: The namespace 'xxx.yyy.Data.Models' already contains a definition for 'ViewModelName'
.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…