Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

External library in Metro UI

I am trying to add external library dll to my Metro style app in visual studio 11 in windows 8 and i got the error "A reference to '...' could not be added. The project targets '.NETCore' while the file reference targets '.NETFramework'. This is not a supported scenario. "

Is there any way I can add library ? library is in .net 4

like image 720
murmansk Avatar asked Mar 16 '12 09:03

murmansk


2 Answers

I have created an external WPF library which I intend to refer to in the metro apps. Isn't there a way to refer to .Net 4.0 dlls in metro projects?

like image 26
Poornima Raju Avatar answered Sep 19 '22 22:09

Poornima Raju


Metro supports only to add libraries written for Metro. You can create a class library in visual studio, so called windows metro style class library. Importing native .Net dlls is not possible.

like image 200
Jan K. Avatar answered Sep 20 '22 22:09

Jan K.