UIToolkit 1.0.0-preview.13 has dependencies to Moq and Castle-Core:
Those dependencies are in conflict with the ones that we use in our project and so opening the project ends with errors like this one:
Unity packages should not have dependencies to those libraries. They are very common and every project should be free to use whichever version they want.
That is actually preventing us from migrating our project to UIToolkit - there is no way we could redo the whole project to use the outdated (2018?) versions of Moq and Castle Core.
Well, actually it is fine that that even official unity packages depend on other nuget packages. The problem is that we can’t use the standard .net toolchain, and just resolve the needed version for dependecies…
@Huszky Totally agree. In the short term though UIToolkit should adhere to the existing convention in other Unity packages and not use such dependencies (or have them repackaged somehow to prevent conflicts with customers’ projects).
Even if you don’t need the a newer version of Moq, I couldn’t get my tests to point to the package manager’s nuget version of Moq without setting up Assembly Definitions and doing the reference override.
Which is a currently usable workaround, but certainly painful if you don’t have Assembly Definitions already set up.