Ieuan Griffiths
Ieuan Griffiths

Reputation: 78

Error when uploading Xamarin UI Test in .NET 8

I've got a Xamarin UI test project that I've just updated to .NET 8 (from 4.6.1). I've updated the nuget packages to the latest version also. The tests build and run locally with no issue.

Packages:

I'm trying to upload with the app center cli using the command "appcenter test run uitest". I've got the "uitest-tools-dir" parameter set to the build folder of the project as this spits out "test-cloud.exe" from the Xamarin.UITest package.

When running the command in powershell, I get the following error :

System.IO.FileNotFoundException: Could not load file or assembly 'netstandard, Version=2.1.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.
   at Xamarin.UITest.CLI.Program.Main(String[] args)

None of these have worked (still no netstandard dll in my build output). I'm wondering if I'm missing something simple here? Any ideas?

Upvotes: 0

Views: 284

Answers (2)

Moshe Moadeb
Moshe Moadeb

Reputation: 138

I want to report per this bug: https://github.com/microsoft/appcenter/issues/2637

I was able to get Xamarin.UITest to work on .NET 8. There are still some interesting issues that I have had to work through, but for the most part, it works well.

Upvotes: 0

Moshe Moadeb
Moshe Moadeb

Reputation: 138

As far as I know, they have not yet configured Xamarin.UITest to .Net 8 and that work is being worked on now in order to make Xamarin.UITest compatible with .Net 8. However, it is compatible with .Net 6 and you should be able to change your project to .Net 6 till Xamarin.UITest does the updates needed for .Net 8

Upvotes: 0

Related Questions