Change this Depending on setting done on the project's properties (Solution explorer>Right click The Project>Properties)
In my case they were different. Changing them resolved the error.