question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Wrong msbuild version used to build .net framework project

See original GitHub issue

Describe 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:closed
  • Created 4 months ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
CzBuCHicommented, May 18, 2023

ofcourse after pc restart & reinstall of stryker tool i cannot reproduce this error … so sorry for wastling your time 😕

0reactions
dupdobcommented, May 18, 2023

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found