简体   繁体   English

Electron-Edge-Js和.net标准2.0兼容性问题

[英]Electron-Edge-Js and .net standard 2.0 compatibility issue

I have created a sample electron app and installed electron-edge-js package. 我创建了一个示例电子应用程序,并安装了electronic-edge-js软件包。 Tried to add a .net framework class library dll and called a method from it. 试图添加.net框架类库dll并从中调用方法。 It worked fine. 工作正常。

But the issue is, I tried to create a .net standard 2.0 class library and referenced that dll in my app and tried calling a method from that (a method which simply returns a string). 但是问题是,我试图创建一个.net标准2.0类库,并在我的应用程序中引用了该dll,然后尝试从中调用一个方法(该方法仅返回一个字符串)。 But I got the error 但是我得到了错误

" 'Could not load file or assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.'" “'无法加载文件或程序集'netstandard,版本= 2.0.0.0,文化=中性,PublicKeyToken = cc7b13ffcd2ddd51'或其依赖项之一。系统找不到指定的文件。”

Got the solution. 得到了解决方案。 I have added what all dlls needed for .net standard 2.0 to run, in to my app folder. 我已将运行.net standard 2.0所需的所有dll添加到我的应用程序文件夹中。 Issue resolved. 问题解决了。

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

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