Harmony icon indicating copy to clipboard operation
Harmony copied to clipboard

UNITY_INCLUDE_TESTS causes harmony to not be included

Open geangs opened this issue 1 year ago • 0 comments
trafficstars

When I add

"defineConstraints": [ "UNITY_INCLUDE_TESTS" ],

on a unity playmode test assembly, harmony is no longer included. This is annoying because when this is removed unity tries to include unit tests in the build, which will then fail to compile. As a workwround I can go back and add #if UNITY_EDITOR to all my tests but I also want to understand why this happens to avoid future problems

  • OS: Windows 10, 64bit
  • .NET 4.8
  • Harmony version 2.3.3

geangs avatar Aug 16 '24 19:08 geangs