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 (5)

  1. A72baba0e25667cea95537b83c8d4d10?d=mm

    jiuer7845

    Mar 27, 2020 13:05

    http://www.supplyyeezy.us.com/ Yeezy Supply
    http://www.pandorabijouxfr.fr/ Pandora
    http://www.yeezyadidas.fr/ Yeezy
    http://www.airforce1.de/ Air Force 1
    http://www.nikeairforce1.de/ Nike Air Force 1
    http://www.nikeairmax270.de/ Nike Air Max 270
    http://www.kobebryant-jersey.us/ Kobe Bryant Jersey
    http://www.kobebryantjerseysforsale.us/ Kobe Bryant Jerseys For Sale
    http://www.kobebryantjersey24.us/ Kobe Bryant Jersey 24
    http://www.kobebryantwebsiteofficial.us/ Kobe Bryant Website Official
    http://www.pandorasoldes2020.fr/ Pandora Bijoux
    http://www.yeezy-shoe.us.com/ Yeezy
    http://www.yeezymafia.us.com/ Yeezy
    http://www.supplyyeezy.us.com/ Yeezy Shoes
    http://www.nikeshoes.us.org/ Nike Shoes
    http://www.nfl-jerseys.us.org/ NFL Jerseys
    http://www.yeezyboost350.us.com/ Yeezy Boost 350
    http://www.yeezy350.us.com/ Yeezy
    http://www.yeezy-shoes.in.net/ Yeezy Shoes
    http://www.yeezys.me.uk/ Yeezy
    http://www.yeezy-350.org.uk/ Yeezy
    http://www.yeezy350.org.uk/ Yeezy 350
    http://www.yeezys.us.com/ Yeezy
    http://www.yeezy.com.co/ Yeezy Shoes
    http://www.adidasyeezy.us.com/ Adidas Yeezy
    http://www.yeezy700.org.uk/ Yeezy 700
    http://www.yeezyboost350v2.de/ Yeezy Boost 350 V2
    http://www.nikeoutletstoreonlineshopping.us/ Nike Outlet
    http://www.yeezy-shoes.in.net/ Yeezy Shoes
    http://www.mlbshop.us.com/ MLB Shop
    http://www.adidasyeezy.de/ Adidas Yeezy
    http://www.mlbjerseys.us.com/ MLB Jerseys
    http://www.yeezy380.us/ Yeezy 380
    http://www.yeezy380.us.com/ Yeezy 380
    http://www.nikefactory.us.com/ Nike Outlet
    http://www.humanraces.us.com/ Human Races
    http://www.humanracesshoes.us/ Human Race Shoes
    http://www.uggs-officialsite.org/ Uggs Official Site
    http://www.pandoraonline-shop.de/ Pandora
    http://www.basketball-jerseys.us.com/ Basketball Jerseys
    http://www.jerseysbasketball.us/ Basketball Jerseys
    http://www.jerseys-nba.us/ Cheap NBA Jerseys
    http://www.nikes-shoes.us.com/ Nike Outlet
    http://www.pandoraoutletcanada.ca/ Pandora Canada
    http://www.pandora-charms.org/ Pandora Charms
    http://www.jewelrypandora.org/ Pandora Jewelry
    http://www.pandora-outlet.us.org/ Pandora Outlet
    http://www.pandorajewelryofficialwebsite.us.com/ Pandora Jewelry Official Site
    http://www.mlbjerseysofficial.us.com/ MLB Jerseys
    http://www.pandoras.fr/ Pandora
    http://www.pandorabijouxfr.fr/ Pandora Bijoux
    http://www.yeezyadidas.fr/ Adidas Yeezy
    http://www.pandorasoldes2020.fr/ Pandora Soldes 2020
    http://www.yeezy-shoe.us.com/ Yeezy Shoes
    http://www.yeezymafia.us.com/ Yeezy Mafia
    ウレ

  2. 2adfaf9fa6f954b1cdb5b80458ac97f2?d=mm

    kevinbear741

    Feb 20, 2020 07:37

    The pleasant Content I love the visit on the Visual Studio 2020 establishment. Unluck my web is moderate just about 478 kb/sec. in any case, thank you very much for the pleasant blog https://www.usajacket.com/product/ralph-breaks-internet-mulan-red-jacket/.

  3. Af5f4416c891da0302a4dc3c2eb40c06?d=mm

    CyberAngel

    Oct 07, 2019 12:03

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

  4. Fb2caa50e82513b242a0f007a9c29926?d=mm

    eprovencher

    Aug 23, 2019 14:12

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

  5. 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.