当我尝试在 Android 项目中将 Xamarin.UITest 作为 NuGet 包安装时,我遇到了这个问题。 当我尝试编译项目时出现错误:
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
最佳答案
Xamarin.UITest
NuGet 包不属于 Android 项目。
它必须在自己的项目中,通常是 .NET Framework 项目。
这是一个示例 Xamarin.Forms 应用程序,其中包含一个可供引用的 UITest 项目:https://github.com/brminnick/UITestSampleApp
关于c# - Xamarin.UITest,系统绘图引用错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53797351/