5.2.0b4: Visual Studio 2012 Tools for Unity not working anymore

Not sure if this is the right place to report this issue, but since it did work with 5.1, you might want to know.

Visual Studio 2012 Tools for Unity version 2.0.0.0 (link) does not work with Unity 5.2.0b4 anymore. After installing the unitypackage, it outputs the following error:

System.NullReferenceException: Object reference not set to an instance of an object
  at System.Version.op_GreaterThanOrEqual (System.Version v1, System.Version v2) [0x00000] in /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System/Version.cs:307
  at SyntaxTree.VisualStudio.Unity.Messaging.Platform.HasNativeUvsSupport (System.Version unityVersion) [0x00000] in <filename unknown>:0
  at SyntaxTree.VisualStudio.Unity.Bridge.UnityIntegration.get_HasUvsSupport () [0x00000] in <filename unknown>:0
  at SyntaxTree.VisualStudio.Unity.Bridge.VersionSpecificAssemblyGenerator..cctor () [0x00000] in <filename unknown>:0
UnityEditor.EditorAssemblies:SetLoadedEditorAssemblies(Assembly[])

PS: Does anyone know where to report Visual Studio Tools for Unity bugs? I didn’t find any info on the Microsoft extension website nor at SyntaxTree.

There’s some info in the patch notes. In 5.2, VSTU is built in, so you’re not supposed to import the package anymore. Delete the UnityVS folder, and change the Preferences → External Editor from “UnityVS.OpenFile” back to “Visual Studio”, and it should all just work magically now. See the posts further down here:

2 Likes

I totally missed that. Deleting the UnityVS folder, as you suggested, did the trick. Thanks a lot!