xamarin-forms-samples icon indicating copy to clipboard operation
xamarin-forms-samples copied to clipboard

UsingUITest.Droid is not compatible with net45

Open WillAutioItrax opened this issue 4 years ago • 1 comments

Sample

https://github.com/xamarin/xamarin-forms-samples/tree/master/UsingUITest

Description

I am trying to learn UITesting using Xamarin Forms. Downloading this app seemed like a good start. I downloaded it and opened it in an up to date version of VS2019. I try to run the Android version and get 8 different errors that look like this: Severity Code Description Project File Line Suppression State Error NU1201 Project UsingUITest.Droid is not compatible with net45 (.NETFramework,Version=v4.5). Project UsingUITest.Droid supports: monoandroid90 (MonoAndroid,Version=v9.0) UsingUITest.UITests C:\Users\Will\source\repos\2101\Xamarin_Forms___App_Center_UITest\UsingUITest.UITests\UsingUITest.UITests.csproj 1

Steps to Reproduce

See above.

Expected Behavior

I expect to be able to run the app and then the UITests.

Actual Behavior

The app results in 8 errors that look like this: Severity Code Description Project File Line Suppression State Error NU1201 Project UsingUITest.Droid is not compatible with net45 (.NETFramework,Version=v4.5). Project UsingUITest.Droid supports: monoandroid90 (MonoAndroid,Version=v9.0) UsingUITest.UITests C:\Users\Will\source\repos\2101\Xamarin_Forms___App_Center_UITest\UsingUITest.UITests\UsingUITest.UITests.csproj 1

However, despite the errors, the app runs. But the UITests do not.

Information

  • IDE and IDE version: VS2019 16.8.3
  • Platform with the issue:
    • iOS:
    • Android: Xamarin Android SDK - 11.1.0.17
    • UWP:
  • Device or simulator/emulator: Device Samsung SM-G973W

WillAutioItrax avatar Jan 06 '21 19:01 WillAutioItrax

Seeing the same thing with device or simulator. The project template inserted into an existing solution seems OK, but I was hoping to mess with tests outside of the app to get a feel for it first.

DeerSteak avatar Apr 09 '21 14:04 DeerSteak