UWP supporting Windows.Forms library

Andrei Lovin 1 Reputation point

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


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.

Universal Windows Platform (UWP)
{count} votes

1 answer

Sort by: Most helpful
  1. Richard Zhang-MSFT 6,936 Reputation points


    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.

    0 comments No comments