简体   繁体   English

找不到嵌入在程序集中的资源 EntityModel.rlinq

[英]Cannot find resource EntityModel.rlinq embedded in assembly

I am trying to run a solution which has entity model included but I am getting weird error which someone already had in the past and can help me solve this.我正在尝试运行一个包含实体模型的解决方案,但我收到了过去有人已经遇到的奇怪错误,可以帮助我解决这个问题。 My colleague says that the solution is running fine on his comp and on other computers too, but on mine comp doesn't want to work for some reason.我的同事说该解决方案在他的电脑和其他电脑上运行良好,但在我的电脑上由于某种原因不想工作。 Please let me know if I am missing something, he checked too, and it looks pretty much the same.如果我遗漏了什么,请告诉我,他也检查过,看起来几乎一样。 Here is the screenshot:这是屏幕截图:在此处输入图片说明

Every advice is welcome.欢迎提出任何建议。 Thanks, Laziale谢谢,拉齐亚莱

It seems you do not have OpenAccess ORM installed on your machine.您的机器上似乎没有安装 OpenAccess ORM。 You can refer this article , which demonstrates how to use OpenAccess ORM without installing.您可以参考这篇文章,它演示了如何在不安装的情况下使用 OpenAccess ORM。

If this is not the case and you have the product installed, you need to verify whether the OpenAccess.targets file is deployed under the MSBuild folder [C:\\Program Files (x86)\\MSBuild] and it tries to resolve the enhancer from the correct location.如果不是这种情况并且您安装了产品,则需要验证 OpenAccess.targets 文件是否部署在 MSBuild 文件夹 [C:\\Program Files (x86)\\MSBuild] 下,并尝试从正确的位置。 Additionally the Build Action for the rlinq file should be set to OpenAccessDeploy.此外,rlinq 文件的构建操作应设置为 OpenAccessDeploy。

if telerik 2015 q1 is used, this issue comes.如果使用telerik 2015 q1 ,就会出现这个问题。 first check whether openaccess.target.dll is present in the path c:/program files(86)/msbuild.首先检查路径c:/program files(86)/msbuild.是否存在openaccess.target.dll c:/program files(86)/msbuild. if not, place the one.如果没有,放置一个。 then install telerik q1 installer.然后安装telerik q1安装程序。 I got the installer from my team mate as it is not available in telerik site(deprecated) .我从我的队友那里得到了安装程序,因为它在telerik站点(已弃用)中不可用。

I had the same issue this Offical Telerik post helped me.我遇到了同样的问题, 这个官方 Telerik 帖子帮助了我。

TLDR:域名注册地址:

  1. In Solution Explorer right-click the project containing the rlinq and select Unload Project.在解决方案资源管理器中,右键单击包含 rlinq 的项目并选择卸载项目。
  2. Right-click on the unloaded project and select Edit ProjectName.csproj (vbproj).右键单击卸载的项目并选择编辑 ProjectName.csproj (vbproj)。
  3. Add this to the end of your file:将此添加到文件末尾:

     <Import Condition="Exists('$(MSBuildExtensionsPath)\\OpenAccess.targets')" Project="$(MSBuildExtensionsPath)\\OpenAccess.targets" />

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM