ozmert75
ozmert75

Reputation: 123

Xamarin.UITest, System Drawing Reference Error

I came into this when I tried to install Xamarin.UITest as NuGet package in an Android project. When I try to compile the project I have that error:

Can not resolve reference: System.Drawing, referenced by Xamarin.UITest. Please add a NuGet package or assembly reference for System.Drawing, or remove the reference to Xamarin.UITest. MyApp.Android

Upvotes: 1

Views: 1460

Answers (1)

Brandon Minnick
Brandon Minnick

Reputation: 15322

The Xamarin.UITest NuGet package does not belong in the Android project.

It must be in its own project which is typically a .NET Framework project.

Here's a sample Xamarin.Forms app that includes a UITest project that you can use for reference: https://github.com/brminnick/UITestSampleApp

Upvotes: 6

Related Questions