xunit / devices.xunit

xUnit.net Runners for Devices
Other
73 stars 36 forks source link

Testing UWP app fails to start #137

Open Anil86 opened 4 years ago

Anil86 commented 4 years ago

I'm looking to test UWP app.
When I run the app, following error occurs:

image

Output Debug window shows following error:
The program [14520] XunitWithUWP.exe has exited with code -1073741189 (0xc000027b).
The program [14520] XunitWithUWP.exe: Program Trace has exited with code 0 (0x0).
Activation of the Windows Store app 1831907a-1fae-4a7e-8ebf-ec7ec0ecefe1_52622b6agvany!App failed with error Operation not supported. Unknown error: 0x80040905.

I've created a sample repo.

Testing Android is working.

alariois commented 4 years ago

You are missing a SDK reference to TestPlatform.Universal

Edit XunitWithUWP.csproj file and add

<ItemGroup>
  <SDKReference Include="TestPlatform.Universal, Version=$(VisualStudioVersion)" />
</ItemGroup>