Page 1 of 1

Custom tool error

Posted: Tue 22 Apr 2014 16:54
by tnewark
I am currently building a db first project in visual studio 2012. It's a simple test model with 4 simple tables with foreign key relationships. I have the following settings:

DbContext Project Template
Fluent with Config Classes
File Per Class
Partial Classes

I have the context and config classes going to folders in the Data project.

I have the entities going to a folder in an Entities projcect (trying to separate POCO's from EF dependancy)..

When I save the edml file I get the following erro:

Error 1 Custom tool error: Unable to cast object of type 'Microsoft.VisualStudio.Data.Tools.Package.Project.DatabaseProjectNode' to type 'VSLangProj.VSProject'. C:\Users\tnewark\documents\visual studio 2012\Projects\TestRepository\TestRepositoryData\TestRepository.edml 1 1

Am I doing something wrong? Has anyone else seen this..

The data project has ef 6.1 nuget package and also a dependancy to the entities project, which has no dependancies...

Re: Custom tool error

Posted: Fri 25 Apr 2014 13:23
by Shalex
We could not reproduce the problem in our environment.

Please send us a test Visual Studio project with the *.edml model in it and specify the steps we should follow to reproduce the issue.