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. Dismiss Notice

UWP build settings - Visual Studio is not detected

Discussion in '2017.3 Beta' started by Cookiez, Sep 26, 2017.

  1. Cookiez

    Cookiez

    Joined:
    Nov 1, 2015
    Posts:
    13
    Hey!
    I downloaded the newest beta and tried to open the project prepared by Microsoft: https://developer.microsoft.com/en-us/windows/mixed-reality/mixed_reality_250
    However when I try to build the app, after choosing Universal Windows Platform, an error appears telling me that Unity cannot find the Visual Studio installation (it is installed, all the new updates downloaded, no problem with the 2017.1 version though).
    Are there any known fixes to this problem? upload_2017-9-26_20-47-17.png
     
  2. JakubSmaga

    JakubSmaga

    Joined:
    Aug 5, 2015
    Posts:
    417
    When you go to Edit->Preferences->External Tools do you see Visual Studio in External Script Editor dropdown?
     
  3. Cookiez

    Cookiez

    Joined:
    Nov 1, 2015
    Posts:
    13
    Yes, it's visible and selected in that dropdown menu.
    upload_2017-9-26_21-1-24.png
     
  4. andrar

    andrar

    Unity Technologies

    Joined:
    Sep 27, 2017
    Posts:
    18
    Can you please paste the output of "%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe"?
     
  5. Cookiez

    Cookiez

    Joined:
    Nov 1, 2015
    Posts:
    13
    I ran it in Windows PowerShell and this came out:
    "Visual Studio Locator version 2.0.2 [query version 1.11.2331.64267]
    Copyright (C) Microsoft Corporation. All rights reserved."
     
  6. andrar

    andrar

    Unity Technologies

    Joined:
    Sep 27, 2017
    Posts:
    18
    Apparently Visual Studio cannot be properly located on your machine for some reason.

    Have you recently installed any prerelease versions?

    What does your "About Visual Studio" dialog say?

    Could you also post the screenshot of the installer?
    "%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vs_installer.exe"

    It should display the currently installed Visual Studio version number.

    If the currently installed Visual Studio is listed there you can either try the Update option if it is available or you can try the Repair option from the drop-down menu.

    Otherwise removing Visual Studio completely and re-installing again might be the only option for now.
     
  7. Cookiez

    Cookiez

    Joined:
    Nov 1, 2015
    Posts:
    13
    I actually reinstalled Visual Studio and chose the Community version and it's detected by Unity, previously I had a Professional version - maybe that caused the problem?
     
  8. andrar

    andrar

    Unity Technologies

    Joined:
    Sep 27, 2017
    Posts:
    18