Wrong msbuild version used to build .net framework project
See original GitHub issueDescribe the bug
Stryker is building project using dotnet build
(msbuild for .net core) command even when .net framework project is tested. -> build will fail, because resx are compiled differently in core than in framework.
Expected behavior
Build with msbuild
command for .net framework project.
Desktop (please complete the following information):
- OS: Windows 11
- Type of project: class library
- Framework Version net48
- Stryker Version 3.9.0
Additional context v 3.8.0 do not have this behavior
Issue Analytics
- State:
- Created 4 months ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
MSBuild uses wrong framework version
Project "C:\test\MSBuildTest.targets" on node 1 (default targets). Default: C:\Windows\Microsoft.NET\Framework\v4.0.30319. Done Building ...
Read more >Troubleshoot .NET Framework targeting errors
To resolve the error, make sure that your application targets a .NET version that's compatible with the version that's targeted by the ...
Read more >Visual Studio 2019 unable to load one project due ...
error : The project file cannot be opened. Version 7.0.302 of the .NET SDK requires at least version 17.4.0 of MSBuild. The current...
Read more >MSBuild target incorrect framework when using project ...
If you set up build order MSBuild attempts to build the referenced project with (what appears to be) the wrong target framework.
Read more >Rider Uses Wrong Build Command, Should use MSBuild.exe ...
My solution for a .net core project depends on a .net framework project as well. Ever since .net core 3, Microsoft added a...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
ofcourse after pc restart & reinstall of stryker tool i cannot reproduce this error … so sorry for wastling your time 😕
Thanks. I have tried these options on the net 4.8 integration test projects and Stryker ran as expected, using msbuild to build the project. I am afraid I cannot do much more until you provide us Stryker’s own log (using
--log-to-file
option) or a project reproducing the problem