简体   繁体   中英

Can I use my existing .Net 4.0 Class Libraries on WinRT Metro Style Applications for Windows 8

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.

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

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

Edit

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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