Closed zplan closed 2 years ago
Our MSBuild integration has some strange problems when running with Mono. Please use the dotnet
tool to build it on Linux
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
SpecFlow Version
Which test runner are you using?
MSTest
Test Runner Version Number
2.2.7
.NET Implementation
equal or greater .NET Framework 4.6.1
Project Format of the SpecFlow project
Sdk-style project format
.feature.cs files are generated using
SpecFlow.Tools.MsBuild.Generation NuGet package
Test Execution Method
Command line – PLEASE SPECIFY THE FULL COMMAND LINE
SpecFlow Section in app.config or content of specflow.json
none (default)
Issue Description
OS: Debian Buster Mono JIT compiler version 6.10.0.104 Microsoft (R) Build Engine version 16.6.0 for Mono; 16.6.0
Building a solution with multiple projects only works when using 1 CPU
msbuild /m MyProject.sln --> fails msbuild MyProject.sln --> works
Steps to Reproduce
Create a solution with one specflow project and some other projects.
Build the solution on linux with mono:
msbuild /m MyProject.sln --> fails msbuild MyProject.sln --> works (but only uses 1 CPU)
Is is important to call msbuild with the sln file (with just the .csproj file it works)
The error message is excatly what we also see in the issue https://github.com/SpecFlowOSS/SpecFlow/issues/2325#issuecomment-864540824
Link to Repro Project
No response