I created a small project [0] to reproduce the error in a controlled environment. The facts, I use jenkins to create my project, big, I would like to do some parallel assemblies. Let me do it graphically
[MyBasicPackage] -----> [MyPackageTester] ------> [MyBasicApp]
.
.
+-----> [...]
+-----> [...]
this is the organization that I created on [0], I have the TMyUnit class ( MyBasicPackage ) registered in the spring container for testing. I create it and create it .dcu, .bpl, etc. In the second step, I create my MyPackageTester , which requires MyBasicPackage . Finally, I am creating an application that requires MyPackageTester . So far so good.
When I try to create my MyBasicPackage , say PC-00 , get artifacts and try to create MyPackageTester on PC-06 (same arch, same OS, same IDE, same version of spring4d) and a good error:
Unit TMyUnit was compiled with a different version of Spring.Container.Registration
So, I update my spring4d on both machines ( PC-00 and PC-06 ) and create them. Run ... and the same error occurs. check the library path parameters (C: \ Program Files (x86) \ Embarcadero \ Studio \ 14.0 \ Componentes \ spring4d \ Library \ DelphiXE6 \ Win32 \ Debug), delete the dcu files and create them again on both machines, with the same error . copy the dcu files from PC-00 to PC-06 to avoid any system configuration and the same error occurred.
I guess I'm trying to do what is not yet possible. I tried a couple of days without luck.
Any ideas?
Please feel free to plug or pull an example request;)
Hello
[0] https://github.com/graguirre/DelphiDepencyExample