-
Notifications
You must be signed in to change notification settings - Fork 255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MSTest V2 tests won't run when targeting net5.0-windows10.0.19041 #991
Comments
I'm hitting the same issue with |
I'm seeing the same problem. |
Duplicate of #982 ? |
I posted #851 half a year ago. Just tested it with v2.2.8 and .NET 6, but it still doesn't work. The root cause could be the same? |
Quoting @Scott1js's reply in microsoft/CsWinRT#1047 for reference:
@Haplois can we get some traction on this? |
Honestly I'd prefer the back out that WinUI Support, and make support for packaged apps a different separate test adapter you reference. The UITestMethod attribute that was added is pretty much useless anyway, as it doesn't support async task tests, but is easily worked around by using the existing test method and dispatching to the current window. (WinUIEx does this and uses a code generator to help you avoid having to write that extra code each time, although a simple helper will do the trick for you). |
We are also running into the same issue where a basic net5 based unittest project is working fine when not pinning to a specific Windows Sdk version, but fails to execute at all when a specific Windows Sdk is used (e.g. 10.0.19041) . Downgrading to 2.2.3 also fixed this specific issue. |
I'm seeing the same problem with |
The same problem with .net 6 also. I would like to test some C++/winrt components wrapped with a C#/winrt project... I hope this will be solved because I have no way to test those components ! |
@Haplois is there anything we can do to help get this fixed in a next version? |
I am currently working on fixing this. Our next preview (probably on next friday) will include a fix. I'll update this thread with PR once it is ready. @japj thank you for the offer. |
Description
Tests will not run when targeting net5.0-windows10.0.19041 with MSTest version greater than 2.2.3.
Steps to reproduce
Expected behavior
Tests should run in the test explorer
Actual behavior
All tests are skipped. VS Test log incorrectly reports .dll does not exist.
VS Test Log Output:
MSTest log:
Environment
AB#1415159
The text was updated successfully, but these errors were encountered: