Is it possible to add a System.windows.form reference to a Xamarin project?

Viewed 1266

I am developing a Xamarin.Forms app in Visual Studio and I need to use an external SDK that is dedicated for Windows Form apps. I have been trying to add a reference to System.Windoes.Form but it doesn't appear in the assemblies. I know it wouldn't make sense using windows forms in a Xamarin project, but I am creating the user interface with Xamarin graphics, I just need to add the reference to Windows.Forms to get rid of the following error:

Can not resolve reference: System.Windows.Forms, referenced by MY DLL. Please add a NuGet package or assembly reference for System.Windows.Forms, or remove the reference to MYDLL.

Is there a way to do so? Thanks

1 Answers

.NET can be categorized into three and those are, .NET Core, .NET Framework and Xamarin.

The .NET Framework supports Windows and Web applications.

.NET Core is the new open-source and cross-platform framework to build applications for all operating system including Windows, Mac, and Linux.

When you want to build mobile (iOS, Android, and Windows Mobile) apps using C#, Xamarin is your only choice.

You cannot use System.Windows.Forms inside a Xamarin Project and it is incompatible.

Related