Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  3. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

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

Discussion in '5.2 Beta' started by Peter77, Jul 25, 2015.

  1. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,588
    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:
    Code (CSharp):
    1. System.NullReferenceException: Object reference not set to an instance of an object
    2.   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
    3.   at SyntaxTree.VisualStudio.Unity.Messaging.Platform.HasNativeUvsSupport (System.Version unityVersion) [0x00000] in <filename unknown>:0
    4.   at SyntaxTree.VisualStudio.Unity.Bridge.UnityIntegration.get_HasUvsSupport () [0x00000] in <filename unknown>:0
    5.   at SyntaxTree.VisualStudio.Unity.Bridge.VersionSpecificAssemblyGenerator..cctor () [0x00000] in <filename unknown>:0
    6. 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.
     
  2. makeshiftwings

    makeshiftwings

    Joined:
    May 28, 2011
    Posts:
    3,350
    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:

    http://forum.unity3d.com/threads/visual-studio-tools-for-unity.340979/
     
    Thorny2000 and Peter77 like this.
  3. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,588
    I totally missed that. Deleting the UnityVS folder, as you suggested, did the trick. Thanks a lot!