UWP类库作为.NET类库的包装器 [英] UWP Class Library as a wrapper for .NET class library

查看:97
本文介绍了UWP类库作为.NET类库的包装器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们需要将(二进制分布式).NET类库(DLL)集成到我们的UWP项目中。

There exists a (binary distributed) .NET class library (DLL) that we need to integrate into our UWP projects.

我们想创建一个UWP类库,其中包含现有的.NET类库。新的类库可以包含在任何UWP项目中,UWP开发人员不必处理互操作性细节。

We want to create a UWP class library which includes existing .NET class library somehow. New class library can be included any UWP projects in a way that a UWP developer not have to dealing with interoperability details.

我们已经对Desktop Bridge或其他一些方法进行了一些研究,但是我们没有找到合适的方法。

We have make some research on Desktop Bridge or some other methods, but we don't have find the proper method.

你能否建议一个正确的方法?

Could you please suggest a proper way?

推荐答案

您好,

由于您没有.NET Class Library的源代码,因此移植到.NET Standard不适合您。您可以使用DesktopBridge在单独的进程中加载​​dll并使用AppService进行通信。 

As you do not have sources for .NET Class Library then porting to .NET Standard is not for you. You can use DesktopBridge to load dll in separate process and use AppService for communication. 


这篇关于UWP类库作为.NET类库的包装器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆