The attached sample will reproduce the issue, in release 0 transforms are added to the registry and in debug 2 transforms are added.
The error occurs when the units are not included in the project ( they are found on the classpath ).
Is it best to use a different code pattern or pass some options to the compiler? I would prefer to have the compiler behave the same in release and debug. Possibly you have hit the same issue and have a better pattern to follow.
Registry.zip (7.9 KB)