Closed fgreinacher closed 8 months ago
Microsoft suggests this:
✔️ CONSIDER multi-targeting even if your source code is the same for all targets, when your project has any library or package dependencies.
✔️ CONSIDER adding a target for net462 when you're offering a netstandard2.0 target.
Therefore I'd recommend to add a net462
target (which is still supported by NUnit 4).
WDYT @RohrerF @PascalSenn @daghsentinel?
Should be fixed in v14.0.1
Describe the bug
The changes from https://github.com/SwissLife-OSS/snapshooter/pull/188 (specifically the discussion https://github.com/SwissLife-OSS/snapshooter/pull/188#discussion_r1416946886) broke scenarios where a NET Framework 4.6.2 test project references both Snapshooter as well NUnit 4. This happens because the Snapshooter build for .NET Standard 2.0 is compiled against NUnit 3.
To Reproduce
I made a minimal reproduction at https://github.com/fgreinacher/snapshooter-net462.
The failure can be seen at https://github.com/fgreinacher/snapshooter-net462/actions/runs/7449195601/job/20265287704:
Expected behavior
This should work as both NUnit 4 and Snapshooter support .NET Framework 4.6.2
Desktop (please complete the following information):