jacobdufault / fullserializer

A robust JSON serialization framework that just works with support for all major Unity export platforms.
MIT License
1.12k stars 169 forks source link

Building DLL with MonoDevelop or shell script #129

Open Radivarig opened 7 years ago

Radivarig commented 7 years ago

I'm trying to build the DLL in MonoDevelop but I get stuck with @(ExternalCompile) showing up in red preventing the build.

Radivarig commented 7 years ago

For Scripts/make_dlls.sh After changing paths (I'm on archlinux) to msc and UnityEditor.dll

#...
echo "Compiling DLLs (dll_file: $dll_file, doc_file: $doc_file)"
/usr/bin/mcs \
  /lib:../Automation /reference:UnityEngine.dll \
  /nowarn:1591 \
  /target:library /debug /sdk:2 \
  /out:$dll_file /doc:$doc_file \
  $all_cs_files
#...

(also used other paths for UnityEngine.dll reference like opt/Unity/Editor/Data/Managed, same)

I get

Compiling DLLs (dll_file: FullSerializer.dll, doc_file: FullSerializer.xml)
../Assets/FullSerializer/Source/fsSerializer.cs(240,8): warning CS1587: XML comment is not placed on a valid language element
../Assets/FullSerializer/Source/Aot/Editor/fsAotConfigurationEditor.cs(35,42): error CS0246: The type or namespace name `Editor' could not be found. Are you missing an assembly reference?
../Assets/FullSerializer/Source/Aot/Editor/fsAotConfigurationEditor.cs(189,24): error CS0115: `FullSerializer.fsAotConfigurationEditor.OnInspectorGUI()' is marked as an override but no suitable method found to override
Compilation failed: 2 error(s), 1 warnings

and same for mac.

For Automation/compile.sh

$ ./compile.sh 
find: ‘/home/radivarig/Downloads/fullserializer-master/Automation/Assets/FullSerializer’: No such file or directory
error CS2008: No files to compile were specified
Compilation failed: 1 error(s), 0 warnings