Closed YevheniiStepaniuk closed 1 week ago
Are you using 2.0.3 as stated in the issue report or 2.0.2 as stated in the error log? Could it be that you have two projects with differing versions?
@ajeckmans I tried both, 2.03 and downgraded to 2.0.2 to double check. issue appears in both unfortunately
@YevheniiStepaniuk from the error message, it seems that the build on the CI is performed using the .NET Core 3.1 SDK. Could you please confirm this?
If yes, do you have any specific reasons to build using that SDK (you can target older frameworks also if you build with a newer SDK).
Probably locally you have a newer .NET SDK and this is why it works there.
You can check the installed SDKs by running the command dotnet --list-sdks
.
Hello @gasparnagy, correct, we are using .NET Core 3.1 SDK. Locally I have .net8 installed but project still being targeted to the 3.1. Does it mean that Reqnroll has problems with 3.1?
@YevheniiStepaniuk .NET Core 3.1 is out of support already by Microsoft since December 13, 2022 (see https://dotnet.microsoft.com/en-us/platform/support/policy/dotnet-core) and Reqnroll also does not support it "officially" (see https://docs.reqnroll.net/latest/installation/compatibility.html#net-versions).
In practice, Reqnroll can most probably run tests with .NET Core 3.1 projects, but for compilation, you might need to use a newer .NET SDK.
So in short: if you need to keep your product compiled for .NET Core 3.1 for whatever reasons, you can do that, just make sure you compile it with a newer SDK. (The newer SDKs can compile to older ,NET versions without problems, so the .NET SDK version and the target version does not need to be the same.)
@gasparnagy Thanks for this information, really helpful
Reqnroll Version
2.0.3
Which test runner are you using?
xUnit
Test Runner Version Number
2.4.3
.NET Implementation
.NET Core 3.1
Test Execution Method
Other – Rider
Content of reqnroll.json configuration file
No response
Issue Description
The issue appears intermittently on the CI only. The exception thrown is: Reqnroll.ReqnrollException: Unable to load plugin assembly: Microsoft.Extensions.DependencyModel.
Locally, everything works fine, and no issues are encountered.
Steps Taken to fix:
Error Log:
Additional Information:
The problem occurs only in the CI environment. Locally, the tests run without any issues. Request Any insights or solutions to resolve this intermittent CI failure would be greatly appreciated.
Steps to Reproduce
-
Link to Repro Project
No response