[dcc32 Fatal Error] MyProject.dpr(23): F2051 Unit GUITestRunner was compiled with a different version of DUnitX.TestFramework.ITest
Posted by jpluimers on 2018/06/12
If you ever get an error like these in Delphi XE8 and up
[dcc32 Fatal Error] MyProject.dpr(23): F2051 Unit GUITestRunner was compiled with a different version of DUnitX.TestFramework.ITest
[dcc32 Fatal Error] MyProject.dpr(23): F2051 Unit TextTestRunner was compiled with a different version of DUnitX.TestFramework.ITestListener
then you are likely your project is:
- using a DUnit based test project in Delphi
- not having the unit search paths defined
Solution:
- add this directory to your project search path:
$(BDS)\source\DUnit\src - ensure your project DCU output directory is writable
–jeroen






edwinyzh said
Jeroen, you should ask my SO question (https://stackoverflow.com/questions/47322941/strange-unit-version-error-is-dunitx-depending-on-dunit-or-the-other-way-aroun) :D
Although after re-install delphi the issue has gone, but I guess your solution is relevant.