Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 564
tugberk Avatar asked Jan 29 '12 20:01

tugberk


1 Answers

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.

like image 169
ColinE Avatar answered Sep 24 '22 10:09

ColinE