- Home /
Question by
elenzil · Oct 18, 2016 at 05:47 PM ·
buildbuild-errorxmlcommand-linelinq
command-line build only: error CS0234: `Linq' does not exist in the namespace `System.Xml'
my project builds fine within the IDE, but when building from command-line it has trouble finding Linq.
there's various threads on SO which suggest making sure the project is targeting .NET 3.5, but i can't find that option in MonoDevelop or Unity. (I think this is different than the "API Compatibility Level" setting in the project settings in unity IDE. Some threads also suggest making sure the proper DLLs are being included, but i'm not sure how to do that. The unity docs don't mention it.
my command-line is fairly simple:
<path to unity>/Unity -batchmode -projectPath <path> -quit -executeMethod myClass.build -platform osx <output path>
there's several errors around XML, but to call one out specifically, this line:
using System.Xml.Linq;
yields this error:
error CS0234: The type or namespace name `Linq' does not exist in the namespace `System.Xml'. Are you missing an assembly reference?
Comment