Search Issue Tracker

Fixed in 2020.1

Fixed in 2018.4, 2019.2, 2019.3

Votes

6

Found in

2018.4.0f1

2019.1.0a10

2019.1.8f1

2019.2.0a1

2019.3.0a1

Issue ID

1166131

Regression

No

[UWP] Building project for Visual Studio 2019 generates solution that targets build tools for VS 2017 tool-set (v141)

How to reproduce:
1. Have a system with Visual Studio 2019 and no Visual Studio 2017 and no MSVC v141
2. Create a new project or open existing one
3. In Build Settings, switch target platform to UWP
4. Verify "Visual Studio Version" field is set to "Visual Studio 2019" or "Latest installed" and that no other Visual Studio version is listed
5. Build the project
6. Open the newly build Visual Studio Solution (with Visual Studio 2019)
7. Build on Local Machine with Debug|x64 options
-- Building process fails with an error that the build tools for Visual Studio 2017 (v141) cannot be found. (exact error message below)

Expected result: When "Visual Studio 2019" or "Latest installed" option is selected (step 4), step 5 should generate a solution that targets Platform Toolset v142 without the need to manually Retarget Solution in Visual Studio.
Actual result: Building project for "Visual Studio 2019" generates a solution that targets build tools for Visual Studio 2017, therefore, it is needed to manually Retarget Solution in Visual Studio.

Reproducible with - 2018.4.3f1, 2019.1.0a10, 2019.1.9f1, 2019.2.0a1, 2019.2.0b8, 2019.3.0a8

Note: Not tested on 2017.4.29f1, 2019.1.0a1-a9 and since VS 2019 installation is not detected on those versions.

Exact error message:
Error MSB8020 The build tools for Visual Studio 2017 (Platform Toolset = 'v141') cannot be found. To build using the v141 build tools, please install Visual Studio 2017 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution". New Unity Project (2) C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets 379

  1. Response avatar

    Resolution Note (fix version 2020.1):

    Fixed in 2020.1.0a4
    Backported to 2018.4.10f1, 2019.2.6f1, 2019.3.0b4

Comments (3)

  1. Af5f4416c891da0302a4dc3c2eb40c06?d=mm

    CyberAngel

    Oct 07, 2019 12:03

    Not fixed in 2019.2.8 so how do we fix this issue?

  2. Fb2caa50e82513b242a0f007a9c29926?d=mm

    eprovencher

    Aug 23, 2019 14:12

    For me, the build fails even when retargetting for v142 build tools.

  3. 6503ee8235791bdfe6928dc31274b6a5?d=mm

    ddayptc

    Aug 08, 2019 13:58

    If you have v141 of the toolset another symptom is that the Device option does not show up in studio for debugging on the Hololens

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.