I’m trying to migrate to Unity 2018 and hit an issue.
The problem is that the project files, generated by the editor, reference mono 4.7.1 dlls, but the target framework of the project itself is 4.6. In my view, it looks like a bug.
My specific issue is as follwing. I use an external solution, that builds some dlls into the Unity asset folder (to share logic with the server, and to be able to use C# 7). I also use tuples extensivly and there lies the problem. Since the generated projects target 4.6, I have to target it in my external solution too. This version of .Net doesn’t include ValueTuples, and so I have to include them via nuget. But the generated Unity projects reference mscorlib 4.7.1, so they won’t compile due to ambiguous class reference error.
This wouldn’t be an issue if the generated projects referenced and targeted the same version of .net, either 4.6 or 4.7.1.
Is there any chance it could be fixed? Or maybe someone knows a workaround?