Here's how I managed to solve it:
Go to the solution explorer and choose Antlr
under References, right-click and say properties. Make sure the file version is the same the compiler is looking for. In my case, MSBuild wanted version 5.5.0.2, but the reference properties showed an earlier 2.x version.
All I had to do is go to the package manager console and type:
PM> update-package Antlr
Then build the project again, and in-case you get the same error for more assemblies, update them as well. Your issue will be resolved
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…