The default target version of Entity Framework requires edmx schema version 2.0.0.0 or lower. The specified schema is version 3.0.0.0

I pre-create views in Entity Framework 5.0 with EdmGen.exe like this:

"%windir%\Microsoft.NET\Framework\v4.0.30319\EdmGen.exe" 
/nologo 
/mode:ViewGeneration 
/inssdl:"$(TargetDir)Base.ssdl" 
/incsdl:"$(TargetDir)Base.csdl" 
/inmsl:"$(TargetDir)Base.msl" 
/outviews:"$(ProjectDir)BaseViews.cs" 
/language:CSharp

      

Details of the warning:

Warning 3 The default target version of Entity Framework requires edmx schema 2.0.0.0 or lower. The specified schema is version 3.0.0.0. To avoid this warning, explicitly target the Entity Framework version. You can do this by using the EdmGen.exe command line tool with the targetVersion parameter or by including the targetEntityFrameworkVersion when you call the GenerateCode method.

Any idea on how to fix this problem?

+3


source to share


1 answer


You need to add /targetversion:4.5

to EdmGen



+5


source







All Articles