Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DB Project won't load in Visual Studio 2013

The error says:

Failed to create extension manager for the target platform 'Microsoft.Data.Tools.Schema.Sql.Sql120DatabaseSchemaProvider'.

My teammate created the DB Project, but when I pulled it down from source control it failed to create.

like image 865
jocull Avatar asked Apr 28 '14 12:04

jocull


2 Answers

The solution is to get an update to the "SQL Server Data Tools". You apparently have an older version.

Look in Visual Studio 2013 under Tools-->Extentions and Updates. On the left pane from there, click on Updates. Hopefully you'll be able to find the update you need there.

(Alternatively, run a repair installation on "SQL Server Data Tools" under Windows' Control Panel-->Programs.)

like image 174
Glen Weaver Avatar answered Oct 04 '22 21:10

Glen Weaver


I fixed this problem by lowering the required version of the tools. I'm not sure why they are installed on his machine and not on mine, but edit the dbproj file and change the requirement to a lower version, like this:

Original:

<SchemaVersion>2.0</SchemaVersion> <ProjectVersion>4.1</ProjectVersion> <ProjectGuid>{......}</ProjectGuid> <DSP>Microsoft.Data.Tools.Schema.Sql.Sql120DatabaseSchemaProvider</DSP> <OutputType>Database</OutputType> <RootPath> </RootPath> 

Updated: (don't include the *'s)

<SchemaVersion>2.0</SchemaVersion> <ProjectVersion>4.1</ProjectVersion> <ProjectGuid>{......}</ProjectGuid> **<DSP>Microsoft.Data.Tools.Schema.Sql.Sql110DatabaseSchemaProvider</DSP>** <OutputType>Database</OutputType> <RootPath> </RootPath> 
like image 32
jocull Avatar answered Oct 04 '22 21:10

jocull