Edmx file with Visual Studio 11 Beta.Net 4.5

I'm having a problem creating a new edmx file using Visual Studio 2011 Beta

  • .Net 4.5 target framework
  • Class library project

After adding empty model, I am getting below error

Error 6039: Warning CS1701: Assuming assembly reference 'System.Data.Entity, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = b77a5c561934e089' matches' System.Data.Entity, Version = 4.2.0.0, Culture = neutral, PublicKeyToken = b77a5c561934e089 ', you may need to provide runtime \ fjwflppr.0.cs (465,29): error CS1061: "System.Data.Metadata.Edm.EdmFunction" does not contain definition of "IsComposableAttribute" and extension method' IsComposableAttribute 'takes the first an argument of type 'System.Data.Metadata.Edm.EdmFunction' can be found (are you missing using directive or assembly reference?)

Method not found: 'Boolean System.Data.Metadata.Edm.EdmFunction.get_IsComposableAttribute () ".

According to msdn EdmFunction.IsComposableAttribute is only supported in .net 4.5 and the default project is referencing the dll from C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Data.Entity.dll

, but the file properties window in vs shows4.0.0.0

I am confused as to which version of System.Data.Entity.dll my project should reference in order to get the edmx constructor to work.

+3


source to share


1 answer


The problem was that removing the EF CTP did not clear all files, it left a policy file that was tied to the old version "4.2.0.0", so VS would always look for that old version.



more details here fooobar.com/questions/1105813 / ...

+3


source







All Articles