我是否可以使用现有的.NET 4.0类库对WinRT的Metro风格应用程序的Windows 8 [英] Can I use my existing .Net 4.0 Class Libraries on WinRT Metro Style Applications for Windows 8

查看:153
本文介绍了我是否可以使用现有的.NET 4.0类库对WinRT的Metro风格应用程序的Windows 8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚开始潜入Metro风格应用程序的开发,我意识到,没有针对性的框架,当我查看应用程序的属性。

I just started diving into Metro Style application development and I realized that there is no framework targeted when I look at the properties of the application.

所以,我可以用我现有的.NET 4.0类库(或previous的)对WinRT的地铁S型应用程序的Windows 8?

So, can I use my existing .Net 4.0 Class Libraries (or previous ones) on WinRT Metro Stype Applications for Windows 8?

例如,我想获得的 Autofac 并使用它,但我不知道这是否会是一个正确的选择。

For example, I would like to get the Autofac and use it but I am not sure if it would be a right fit.

修改

我觉得它实际上是针对.Net框架的核心4.5。

I think it is actually targeting .Net Framework Core 4.5.

推荐答案

虽然一些的WinRT API都是非常相似的.NET API,则不能直接共享类库。这是WPF,Silverlight和Silverlight的为Windows Phone,那里的API是类似的,但类库是不能互换的情况相同。如果您使用便携式类库(PCL),但是,您可以针对这三个平台。我想有该PCL可能支持WinRT中的未来,但是,我相信这将是很像XBOX360的支持,其中只有核心库可以beshared的机会。

Whilst a number of WinRT APIs are quite similar to the .NET APIs, you cannot directly share class libraries. This is the same situation with WPF, Silverlight and Silverlight for Windows Phone, where the APIs are similar but class libraries are not interchangeable. You can however target these three platforms if you use the Portable Class Library (PCL). I guess there is a chance that the PCL might support WinRT in the future, however, I am sure it will be much like XBox360 support, where only the core libraries can beshared.

这篇关于我是否可以使用现有的.NET 4.0类库对WinRT的Metro风格应用程序的Windows 8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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