Visual Studio 2019 Thinks Project Targets 2010 Toolset

Viewed 21

I just migrated a solution from VS 2017 to VS 2019. When prompted to re-platform I accepted. All projects migrated and build without issue, except for one project to build (trimmed down) ICU. For some reason, VS 2019 thinks it's supposed to use the 2010 Toolset. This is the error I get with the Visual Studio 2019 (v142) Toolset:

MSB8020 The build tools for Visual Studio 2010 (Platform Toolset = 'v100') cannot be found. To build using the v100 build tools, please install Visual Studio 2010 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".
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets   439 

I've tried manually re-targeting both the solution and the project per the error message, no change. I've checked everything I can to locate any reference to Visual Studio 2010 Toolset (v100), and I've found nothing.

Project's Properties

> type icu\source\common\common.vcxproj | grep -i PlatformToolset
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v142</PlatformToolset>

(Incidentally, if I try grep -i PlatformToolset icu\source\common\common.vcxproj it gives no matches at all.)

I don't have the Visual Studio 2010 Toolset (v100) installed.

If I change the Toolset to Visual Studio 2017 (v141), it builds fine.

Any suggestions?

0 Answers
Related