Cant Build My Project

Hello.
When i try to build my project (Building for PC) it gives me 2 errors.

and

Below are the full editor logs. i am not sure what is going wrong. i tried starting a new project but with no use.
I would really appreciate the help so much.(I am using Dlls not sure if that affects it)
Thanks

This looks to be the problem:

-----CompilerOutput:-stdout–exitcode: 1–compilationhadfailure: True–outfile: Temp/Assembly-CSharp-firstpass.dll

Missing method .ctor in assembly C:\Users\moham_000\Documents\DSBGames\Assets\FUBI\Fubi_CS_Wrapper.dll, type System.Runtime.Versioning.TargetFrameworkAttribute

The class System.Runtime.Versioning.TargetFrameworkAttribute could not be loaded, used in Fubi_CS_Wrapper

Can’t find custom attr constructor image: C:\Users\moham_000\Documents\DSBGames\Assets\FUBI\Fubi_CS_Wrapper.dll mtoken: 0x0a000004

The class System.Runtime.Serialization.CollectionDataContractAttribute could not be loaded, used in System.Runtime.Serialization, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e

I’ve no idea what FUBI is. Maybe remove it from your project and see if it’ll build. If this is the problem, contact whoever you got FUBI from and ask them for help.

1 Like

FUBI is The kinect interface i am using . and yes when i remove it the program builds!! too bad i really need to use it and don’t have time to use something else.

I emailed them hopping they give me a solution.

Thank you for your help its much appreciated.

This is the FUBI site (FUBI download | SourceForge.net)

Hello
So i removed kinect and all build well now there is another dll i am using. when i build for windows 32bit the game runs but crashes as soon as that dll is called.

when i build for windows 64 the game tells me the dll is not found.
any idea?

I am using this voice speaker Dll (Text to Speech [Dll] for Windows Desktop. - Unity Engine - Unity Discussions)
it works fine in the editor.

Thanks for the help

Sounds like the DLL is a 32-bit one. So, the 64-bit build is looking for a 64-bit DLL but fails to find one. Your 32-bit build finds a 32-bit DLL but crashes for some reason.

1 Like

This is the output log i am getting

don’t see any problems here …

did you get it work ?

Hello.
Yeah I got it to work now. FUBI unity which is the dll I am using was using a new .net framework which was not supported by unity. I contacted the guy who made the dll and he was nice to compile me another one.