Visual Studios for Mac: Unable to load the specified metadata resource

萝らか妹 提交于 2019-12-24 07:58:38

问题


In my C# Project I use Database First development using Entity Framework. The model is stored in an EDMX file (.edmx extension) in my project. This process automatically created a connection string as follows in my App.config:

<add name="TableEntities" connectionString="metadata=res://*/DBModel.csdl|res://*/DBModel.ssdl|res://*/DBModel.msl ...

This project has been thoroughly tested on 'Visual Studios 2015 - Windows' and works flawlessly. Pulling the same repo in the 'Visual Studios for Mac' workspace throws a System.Data.Entity.Core.MetadataException with the following information:


Message: Unable to load the specified metadata resource.

Source: EntityFramework

TargetSite (Type - System.Reflection.MonoMethod):

{System.Collections.Generic.List1 [System.Data.Entity.Core.Metadata.Edm.MetadataArtifactLoaderResource] LoadResources(System.String, System.String, System.Collections.Generic.ICollection`1[System.String], System.Data.Entity.Core.Metadata.Edm.MetadataArtifactAssemblyResolver)}


Do I need to alter my project in any way for this to work?

Has anyone managed to use Entity Framework with Visual Studios for Mac?

来源:https://stackoverflow.com/questions/43500520/visual-studios-for-mac-unable-to-load-the-specified-metadata-resource

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!