-
Notifications
You must be signed in to change notification settings - Fork 196
Stryker should use Msbuild instead of dotnet build when msbuild path is specified #3182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
hi, thanks for the opening the issue. |
@dupdob Stryker is trying to build a project that targets net8.0-windows10.0.19041.0 (Windows App SDK). Since the By providing the logs, I meant to focus on the fallback mechanism. Not the errors themselves. Let's assume that for the solution, |
Thanks for the precision. For information, our experience is that one needs to provide the solution file for such project to be built. Stryker raises an error for this kind of situation, but it relies on the framework version for identification. |
Some clarifications: We do that for a specific known situation. I do not think it is a good idea to generalize this, because:
But, it definitely makes sense to favor msbuild if a specific path is provided. |
Would this (now a) feature apply to both levels - solution and project? It would be good if it does. |
Given a scenario where:
msbuild-path
is defined.When an initial build fails using the
dotnet build
command - whether for a test project or a target project - it does not fall back to the specified MSBuild, as it does when Stryker is executed at the solution level.Logs
For simplicity, the attached logs show an example of a syntax error, only to point out that the fallback to MSBuild would try to work. IRL, the Windows App SDK projects can't be built with .NET SDK (I guess there are some dependencies to .NET Framework in the build process) and still rely on MSBuild and its workloads.
Logs - Project level, failure without fallback to MSBuild.txt
Logs - Solution level, failure with fallback to MSBuild.txt
Expected behavior
The fallback to MSBuild works for the project level just as for the solution.
Ideal behavior
When
msbuild-path
is defined,dotnet build
should be omitted.The text was updated successfully, but these errors were encountered: