Skip to content

MSTest 4 is not SupportedΒ #424

@SeMuell

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.

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