Problem:
You face the below error message while building a project in the Visual Studio
Solution:
1. Go to Solution Explorer of the project in the Visual Studio IDE.
2. Right click the project.
3. Choose Properties. (Or press Alt+Enter after left click the project in Solution Explorer)
4. Go to Build tab.
5. Choose x64 in the Platform target drop down list box
6. Rebuild the project.