Skip to content
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

Could not determine target device configuration on test execution #10261

Open
ChristianGalla opened this issue Dec 29, 2024 · 1 comment
Open
Labels
bug Something isn't working needs-triage Issue needs to be triaged by the area owners

Comments

@ChristianGalla
Copy link

Describe the bug

I was able to execute unit tests using MSTest.

After updating MSTest.TestAdapter and MSTest.TestFramework from 3.6.4 to 3.7.0, test cannot be executed anymore.

Test output:

Building Test Projects
Could not determine target device configuration. Exception: System.Runtime.InteropServices.COMException (0x80020009): The method or operation is not implemented.
   at EnvDTE.Property.get_Value()
   at Microsoft.VisualStudio.TestWindow.ShellServices.ProjectDataImpl.<GetRemoteMachineAddressAsync>d__36.MoveNext()
Executing all tests in project: AutoStartConfirmTests
========== Starting test run ==========
========== Test run aborted: 0 Tests (0 Passed, 0 Failed, 0 Skipped) run in < 1 ms ==========

This looks like a regression of 2.2.9: #6258 (comment)

Steps to reproduce the bug

  1. Checkout my branch https://github.com/ChristianGalla/AutoStartConfirm/tree/mstest-3.7.0
  2. Execute the test project

As an alternative the same issue should occur on other test projects that have MSTest.TestAdapter and MSTest.TestFramework installed in version 3.7.0.

Expected behavior

Tests can be discovered and executed.

Screenshots

No response

NuGet package version

None

Windows version

No response

Additional context

Language: C#
OS: Windows 10 22H2
Framework: .NET 9
Packaging: unpackaged
Windows App SDK version: 1.6.241114003

@ChristianGalla ChristianGalla added the bug Something isn't working label Dec 29, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Dec 29, 2024
@LucaCris
Copy link

Confirmed (SDK 1.6 target Net8):

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage Issue needs to be triaged by the area owners
Projects
None yet
Development

No branches or pull requests

2 participants