Skip to content

Could not determine target device configuration on test execution #10261

@ChristianGalla

Description

@ChristianGalla

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds-triageIssue needs to be triaged by the area ownerstest issueIssue with test code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions