How can I target SQL Server 2012 instead of 2014 when publishing?

publish, visual-studio-2012

Solution

I had the same issue and I able to fix it by following:

1) Right click on the project go to Properties and change the Target platform as shown below.

Problem

I'm trying to publish a project and I get this error: a project which specifies sql server 2014 as the target platform cannot be published to sql server 2012 How can I make it target 2012?

Original source