microsoft / XamlBehaviors

This is the official home for UWP XAML Behaviors on GitHub.
MIT License
697 stars 112 forks source link

Run the managed unit tests on push/pr #268

Closed jstedfast closed 2 weeks ago

jstedfast commented 2 weeks ago

Unfortunately, this failed. Gotta figure out how to fix this.

jstedfast commented 2 weeks ago
error MSB4019: The imported project "C:\Program Files\dotnet\sdk\8.0.400\Microsoft\WindowsXaml\v17.0\Microsoft.Windows.UI.Xaml.CSharp.targets" was not found.

Is this installed via some sort of dotnet workload?

jstedfast commented 2 weeks ago

Ugh, ok, so we can't use dotnet test for these because the Microsoft.Windows.UI.Xaml.CSharp.targets file exists in C:\Program Files\Microsoft Visual Studio\Enterprise\MSBuild\Microsoft\WindowsXaml\v17.0\Microsoft.Windows.UI.Xaml.CSharp.targets

Even if we try to run the tests manually by invoking vstest.console.exe on out\BehaviorsSDKManaged\bin\x86\Release\ManagedUnitTests.exe, it doesn't seem to do anything.

If I run them in VS, then it pops up a GUI app which might not be doable in a GitHub pipeline because it is probably headless.