Share via


Platform Toolset

Question

Wednesday, July 15, 2020 11:17 PM

Hello

I am currently using Visual Studio 2010. I have a solution I am trying to run. However, whenever I try to build it, I get the message

error MSB8008: Specified platform toolset (v142) is not installed or invalid. Please make sure that a supported PlatformToolset value is selected.

How do I fix this?

All replies (3)

Thursday, July 16, 2020 12:11 AM | 1 vote

Change the platform toolset in the project properties to Visual Studio 2010?

While this is the project properties window for Visual Studio 2019 with the toolset set to Visual Studio 2017, this is the same place that the platform toolset setting has always been.

Of course, this is assuming that you are trying to use the Visual Studio 2010 IDE to build using the Visual Studio 2010 toolset since that is what I implied from the "How do I fix this?" statement. Since you never mentioned how you actually wanted this resolved then this is the only conclusion I could come to.

If you want Visual Studio 2010 to build using the Visual Studio 2019 toolset, then you are out of luck. Microsoft has always purposely designed Visual Studio so they are not forward aware.

This is a signature. Any samples given are not meant to have error checking or show best practices. They are meant to just illustrate a point. I may also give inefficient code or introduce some problems to discourage copy/paste coding. This is because the major point of my posts is to aid in the learning process.


Thursday, July 16, 2020 12:27 AM

Thank you. That did the trick.


Thursday, July 16, 2020 7:26 AM

Hi Antoan2470,

Welcome to the MSDN forum.

Thanks for the reply from Darran Rowe! If it works for you, you could mark the reply as answer and that will help other community members who have similar or same issues.

Thank you for helping us build a better Visual Studio!

Hoping everything goes well.

Sincerely,

Anna

MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected]