- Uređeno
C#: Visual Studio Doesn't Seem to Like Spine Operators
Visual Studio 2019 returns all sorts of errors for my scripts for Spine-related code. The scripts, however, seem to run perfectly fine and these errors don't seem to prevent the code from running. It is kind of annoying, however. It seems the "using Spine;" directive isn't being recognized? But the code seems to run fine so it must be getting recognized. Does anyone know why this is the case?
We are sorry for the trouble. Are you using Unity 2019.3.12? There seems to be an issue with this Unity version and assembly references:
https://forum.unity.com/threads/visual-studio-2019-cant-compile-external-assets.882061/
https://answers.unity.com/questions/1725203/visual-studio-cant-reference-to-firstpass-assembly.html?_ga=2.227159322.666949389.1588590325-402379053.1586429757
We recommend not using 2019.3.12 due to this problem, 2019.3.11 seems to work fine.
Harald wroteAre you using Unity 2019.3.12?
I am using Unity 2019.3.12f1
However, for some reason when I opened my scripts in Visual Studio today the errors no longer display. Very strange. I have no idea what would have changed between today and yesterday to cause this change. I had very recently upgraded from Visual Studio 2017 to Visual Studio 2019. Maybe just restarting my computer was all that was needed for the update to recognize the Spine directive... or something.
Thanks for the additional info. That is indeed strange, as I am locally receiving the above problems on Visual Studio 2017. Anyway, let's hope the problems never come back. 8)