question

AndreiLovin-8403 avatar image
AndreiLovin-8403 asked ·

UWP supporting Windows.Forms library

I'm working on a UWP project in which I'm trying to add a third-party library. I added the library and everything seemed to work fine until I cleaned and rebuild the solution? Now I'm getting:

 Cannot resolve Assembly or Windows Metadata file 'Type universe cannot resolve assembly: System.Windows.Forms ...  Project.csproj

and

 Could not copy the file "obj\x86\Debug\FavoriteControl\Favorite.xbf" because it was not found.      

I definitely know that the errors are from the library. The library was added through Reference and some header were added inside the project.


windows-uwp
1 comment
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello, if you have other questions, please feel free to ask

0 Votes 0 · ·

1 Answer

RichardZhang-MSFT avatar image
RichardZhang-MSFT answered ·

Hello,

Welcome to Microsoft Q&A!

The libraries used by UWP projects are not fully compatible with WinForm, you cannot directly reference them. Please consider replacing with a library supported by UWP.

Thank you.

Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.