Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Visual Studio Tools need administrator privileges on Windows 8

Discussion in 'Code Editors & IDEs' started by lumanskiy, Oct 29, 2015.

  1. lumanskiy

    lumanskiy

    Joined:
    Oct 23, 2015
    Posts:
    8
    I am using Windows 8.1 pro and every time I run Unity without administrator privileges Visual Studio tools don't work. Visual Studio opens correctly but debug doesn't work and the "Microsoft Visual Studio Tools for Unity 2.1.0.0 enabled" is not shown in the "Help - About Unity" menu.

    Restarting Unity with admin privileges helps, but it's really annoying and it took me forever to figure out why Visual Studio tools don't work.
     
    Last edited: Oct 29, 2015
  2. lumanskiy

    lumanskiy

    Joined:
    Oct 23, 2015
    Posts:
    8
    Bump.
    I think if app needs admin privileges to run correctly, it should ask for admin privileges instead of silently breaking the functionality. I think it makes sense to open a bug report.
     
  3. sberk

    sberk

    Joined:
    Mar 25, 2014
    Posts:
    7
    This is still an issue which is having a serious effect on our workflow at the university where we work. Our students naturally aren't given admin rights, which is hereby making it impossible for them to use Visual Studio Tools for Unity.
     
  4. jbevain

    jbevain

    Microsoft

    Joined:
    Feb 22, 2012
    Posts:
    141
    Hi folks,

    This is an issue in the VSTU setup. We've fixed it internally for our next release.

    There's a workaround in the meantime. The registry for the user should have the key:

    Code (CSharp):
    1. Windows Registry Editor Version 5.00
    2.  
    3. [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Microsoft Visual Studio 2015 Tools for Unity]
    4. "UnityExtensionPath"="C:\\Program Files (x86)\\Microsoft Visual Studio Tools for Unity\\2015\\Editor\\SyntaxTree.VisualStudio.Unity.Bridge.dll"
    5.  
    6.  
    This will allow Unity to detect the VSTU installation and load it.
     
  5. sberk

    sberk

    Joined:
    Mar 25, 2014
    Posts:
    7
    Great, thanks jbevain! I came to the same conclusion through some personal research, and was just about to come back and share it when you posted. Good to know you've identified the issue and we won't have to worry about it in the future.