derkoi
April 3, 2017, 9:09am
1
No idea what’s causing this but everytime I open my project it asks me to upgrade the API and then fails. I can’t find anything obvious in the log.
APIUpdater encountered some issues and was not able to finish.
System.ArgumentException: preprocessorSymbols
at Microsoft.CodeAnalysis.CSharp.CSharpParseOptions…ctor (Microsoft.CodeAnalysis.CSharp.LanguageVersion languageVersion, Microsoft.CodeAnalysis.DocumentationMode documentationMode, Microsoft.CodeAnalysis.SourceCodeKind kind, System.Collections.Generic.IEnumerable1[T] preprocessorSymbols) [0x00051] in <8d5a2b6695c6475bb1cb5b9a9f9c8dd7>:0 at CSharpUpdater.CSharpUpdater.ParseSyntaxTrees (APIUpdater.Framework.Core.SourceFile[ ] inputs, System.Collections.Generic.IEnumerable1[T] defines) [0x0000e] in <8c197c80297a49cfb36313b1aba6e4f7>:0
at CSharpUpdater.CSharpUpdater.RunUpdater (APIUpdater.Framework.Core.SourceFile[ ] inputs, System.Collections.Generic.IEnumerable1[T] defines, System.Collections.Generic.IEnumerable1[T] references) [0x00013] in <8c197c80297a49cfb36313b1aba6e4f7>:0
at APIUpdater.Framework.Core.APIUpdaterBase.Update (APIUpdater.Framework.Core.SourceFile[ ] inputs, System.Collections.Generic.IEnumerable1[T] defines, System.Collections.Generic.IEnumerable1[T] references) [0x0002a] in <1acc70da50134acf8c1ee45d15211558>:0
at ScriptUpdater.Program.UpdateLanguage (APIUpdater.Framework.Core.IScriptUpdater updater, APIUpdater.Framework.Configuration.CompilerResponseFile responseFile, System.String unityDataPath, System.String outputPath) [0x000ae] in <40723fc79b19465ab3f8e6a83b755955>:0
at ScriptUpdater.Program.Main (System.String[ ] args) [0x000d5] in <40723fc79b19465ab3f8e6a83b755955>:0
(Filename: Line: 0)
Same here… on both Mac and PC. Really need to get the project to 5.6 because of a bug in 5.5 preventing me from building to Android.
derkoi
April 3, 2017, 11:33am
4
I fixed this myself. I ran the updater, then searched the editor log for “upgradable” and manually fixed the issues. There was only 2. Not sure why it didn’t fix them automatically.
3 Likes
@derkoi : Thank you for your answer. For now I tried not running the API Updated at all (and everything is still working just fine). It also will show the deprecated lines. In my case, deprecated API’s are used from the Vuforia .DLL which I can’t change . So I guess I’ll have to wait for an update.
1 Like
Another thread referenced this reply, and I wanted to mention here as well that the steps listed here worked for me. Thanks!
1 Like
Thank you for this answer, this solved my issue as well.