Skip to content

MSTest 4 is not Supported #424

Closed

Description

@SeMuell

The current approach of the MSTestV2 is not compatible with the most recent version of MSTest (4.0.0).

Error message:

Error Message:
   Test method Tests.LayeredArchitectureTest.Method threw exception:
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.TestPlatform.TestFramework, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.
  Stack Trace:
     at ArchUnitNET.MSTestV2.ArchRuleAssert.FulfilsRule(Architecture architecture, IArchRule archRule)
   at ArchUnitNET.MSTestV2.ArchRuleExtensions.CheckRule(Architecture architecture, IArchRule archRule)
   at Tests.LayeredArchitectureTest.Method() in /_/tests/*.Tests/LayeredArchitectureTest.cs:line 169
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

I did not find any easy solution with the current approach; therefore, I adjusted the code already and added a new package. I will create a new PR soon.

Activity

  1. NicolaSeitz commented on Nov 14, 2025

    @NicolaSeitz

    Is there any news about this Issue? As i see the PR does exists since a month.

  2. added
    kind/featureCategorizes issue or PR as related to a new feature.
    triage/acceptedIndicates an issue or PR is ready to be actively worked on.
    and removed
    needs-triageIndicates that an issue needs to be categorized.
    on Nov 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.triage/acceptedIndicates an issue or PR is ready to be actively worked on.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions