- Home /
Unable to parse file ProjectSettings/ProjectVersion.txt: - And other fun errors
Yeah so this has started to happen with Unity 2018, and in every single project be it upgraded or brand new. These errors are not game breaking, but i simply hate to have em pop up in every single project.
Unable to parse file ProjectSettings/ProjectVersion.txt: [Control characters are not allowed] at line 0
TargetException: Non-static method requires a target.
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:236)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
UnityEditor.EditorAssemblies.ProcessInitializeOnLoadMethod (System.Reflection.MethodInfo method) (at C:/buildslave/unity/build/Editor/Mono/EditorAssemblies.cs:116)
UnityEditor.EditorAssemblies.ProcessInitializeOnLoadAttributes () (at C:/buildslave/unity/build/Editor/Mono/EditorAssemblies.cs:135)
Help would be appreciated. As i said above, not game breaking errors but i want to get rid of them.
Answer by jsanchezperuga · Nov 03, 2018 at 08:27 PM
From te issue tracker voting page linked above: "Workaround: This issue is likely a merge conflict in one of the ProjectVersion.txt files. The error is still present on any new project opened, so for now, it is suggested going through the projects and finding the one ProjectVersion.txt file causing this and deleting it." It works.
Answer by GeekyMonkey · Jun 30, 2018 at 08:25 AM
You can vote for the issue to be fixed here: https://issuetracker.unity3d.com/issues/merge-conflict-in-projectversion-dot-txt-causes-unable-to-parse-file-error-on-any-project-opened