ArchUnitNET icon indicating copy to clipboard operation
ArchUnitNET copied to clipboard

MSTest 4 is not Supported

Open SeMuell opened this issue 3 months ago • 1 comments

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.

SeMuell avatar Oct 14 '25 14:10 SeMuell

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

NicolaSeitz avatar Nov 14 '25 08:11 NicolaSeitz