JISyed/Unity-XboxCtrlrInput

[Unity 5.6] Build error: An assembly with the same name `XInputDotNetPure' has already been imported.

Closed this issue · 6 comments

"error CS1704: An assembly with the same name `XInputDotNetPure' has already been imported. Consider removing one of the references or sign the assembly
Assets/Plugins/x86/XInputDotNetPure.dll (Location of the symbol related to previous error)
Assets/Plugins/x86_64/XInputDotNetPure.dll (Location of the symbol related to previous error)

Compilation failed: 1 error(s), 0 warnings"

So i can't compile on unity 5.6 .. :/ ( i'm on windows , target plataform: Standalone windows )

Since updating to Unity 5.6, I am also getting this error every time I try to build a standalone.

error CS1704: An assembly with the same name `XInputDotNetPure' has already been imported. Consider removing one of the references or sign the assembly
Assets/Plugins/x86/XInputDotNetPure.dll (Location of the symbol related to previous error)
Assets/Plugins/x86_64/XInputDotNetPure.dll (Location of the symbol related to previous error)

It seems to be a error with the Plugin XInputDotNetPure. .. if i delete the XInputDotNetPure.dll from x86 folder and move the XInputDotNetPure.dll from x86_64 directly to Plugins it compiles ...

Filed a bug report with Unity as it appears to be on their end. Plugin Importer not respecting architecture.

I recently found out from the XInput project that managed plugins in Unity (the ones written in C#, not C++) need to be built with the same architecture as the Unity Editor (32-bit or 64-bit).

The managed plugin XInputDotNetPure.dll had both a 32-bit and 64-bit version. I had to make an executive decision and remove the 32-bit plugin because I only use 64-bit version of the Unity Editor. That should hopefully resolve the build errors, if you use 64-bit version of Unity. XboxCtrlrInput will no longer support 32-bit Unity Editor (you still should be able to build 32-bit games though).

I made a new release addressing this problem. Hopefully it has been resolved.

Since updating to 1.7.0, my unity64 builds standalones with no problems, both 86 and 64 work on my win64, and the 86 works on my win32.
So, everything works as it should. Thanks again.

Yeah ! many Thanks !! i will close the issue now.