Error msb8020 the build tools for v141 platform toolset v141 cannot be found

Hi,
  • Remove From My Forums
  • Question

  • Hi,

    I am trying to build a solution using MSBuild but I get an error seemingly indicating some tools are not installed. I looked in the directories and they indeed seem to be nowhere found. The message I get is:

    C:Program Files (x86)MSBuildMicrosoft.Cppv4.0V140Microsoft.Cpp.Platform.targets(57,5): error MSB8020: The build t
    ools for v141 (Platform Toolset = ‘v141’) cannot be found. To build using the v141 build tools, please install v141 bui
    ld tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-cli
    ck the solution, and then selecting «Retarget solution». [C:UsersJuan DentC++ DevelopmentSource Componentsmetashel
    lmetashell3rdtemplightbuildZERO_CHECK.vcxproj]

    and the MSBuild directory v4.0 only has v110, v120, v140 — not v141!

    Thanks,

    Juan 


    Juan Dent

Answers

  • Disable the MSBuild parallel build options?

    This will only let MSBuild start one project build at a time.


    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.

    • Marked as answer by

      Sunday, January 21, 2018 12:26 AM

I’m trying to compile a project using OpenFrameworks (a library which uses C++) in Visual Studio. The build is set to Release and X64 and in the project properties I have set the Platform Toolset to Visual Studio 2015 (v140)

However every time I try to build the project I get the same error (amongst others)

Error MSB8020 The build tools for v141 (Platform Toolset = ‘v141’)
cannot be found. To build using the v141 build tools, please install
v141 build tools.

I know v141 is from the new version of MSVS 2017 but I do not want to upgrade to as the new version is not compatible with OpenFrameworks. I have tried rebuilding the project from scratch several times and have also looked into the VCXPROJ file and verified that everything is set to V140 — and it is. All very bizarre.

It seems that on build, something is setting a requirement for v141 but I cannot seem to find where this is coming from. Does anyone have an idea?

asked Apr 9, 2017 at 22:37

cy_b0rg's user avatar

6

I had such an issue. The solution is: open menu «Project»->Properties->Configuration Properites->General — and choose platform toolset v140.

answered Mar 6, 2018 at 6:32

Alexander Bekman's user avatar

Had this same error trying to npm install after cloning a node based project. It had an npm dependency that required C++ source to be compiled.

I had already modified my VS2017 install to include Individual Components -> VC++ 2017 version 15.7 v14.14 latest v141 tools

but that didn’t help.

I applied these commands in succession

  1. npm install -g node-gyp

  2. npm install --global --production windows-build-tools

The first had no effect but the second did the trick and the npm install command completed successfully after that.

answered Jun 4, 2018 at 5:16

fiat's user avatar

fiatfiat

15.2k9 gold badges80 silver badges101 bronze badges

2

This was addressed in the comments of one of the answers, but it worked for me. I had both v140 and v141 build tools installed, so when I had to use v140 build tools for something, I set the VCTargetsPath variable to the path of the v140 build tools. Deleting this variable in my environment variables ultimately fixed this issue for me.

enter image description here

answered Mar 9, 2019 at 21:59

Chris Gong's user avatar

Chris GongChris Gong

7,9264 gold badges30 silver badges50 bronze badges

For this error, and similar, for other platforms (e.g. VS2013) this problem typically occurs because you installed an older version of VS after you installed a later one. It’s my observation that this will effect all of your Visual Studio C++ projects, and you will have to manually set them to target the specific toolset for the given version of VS you are trying to build the project under.

answered Mar 22, 2018 at 14:10

RLH's user avatar

RLHRLH

14.9k21 gold badges94 silver badges180 bronze badges

2

enter image description here

If anyone has the same issue..
Reason: When someone tries to open existing solution which created/build on latest VS version (VS2015 / 2017) and tried to open with backward / old version of VS instance. Then this error might occur.

Please try below steps.
Right click Project->Properties->Configuration Properties.
Set ‘Target Platform Version’ as Supported OS version, i.e. for 8.1 > Win7 & 10 Win10
Set ‘Platform tool set’ as installed visual studio version.

Re-Build & Enjoy :)

answered Apr 15, 2020 at 6:25

Dattatraya Mengudale's user avatar

I had that v141 error when building from command-line but not inside visual studio:

The build tools for v141 (Platform Toolset = ‘v141’) cannot be found. To build using the v141 build tools, please install v141 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».

Turns out it was because I was calling the wrong vcvars so I was using the wrong version of msbuild.exe:

:: wrong (Visual Studio 2015)
call "C:Program Files (x86)Microsoft Visual Studio 14.0VCvcvarsall.bat" x64 >NUL
:: correct (Visual Studio 2017)
call "C:Program Files (x86)Microsoft Visual Studio2017ProfessionalVCAuxiliaryBuildvcvars64.bat" x64 >NUL

Not sure it’s possible for this to be the error inside visual studio, but I hope this is helpful to some future searcher…

answered Jul 23, 2021 at 17:24

idbrii's user avatar

idbriiidbrii

10.6k5 gold badges61 silver badges103 bronze badges

  • Remove From My Forums
  • Question

  • Hello friends,

    I am Trying to build a project, I can’t build C++ projects that were created in Visual studio 2013 or 2015, I get this Error:

    Error MSB8020 The build tools for v141 (Platform Toolset = ‘v141’) cannot be found. To build using the v141 build tools, please install v141 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».  Project name C:Program Files (x86)Microsoft Visual Studio2017CommunityCommon7IDEVCVCTargetsMicrosoft.Cpp.Platform.targets 57 

    After installing Visual Studio 2017 RC I got a message that the windows 10 SDK wasn’t installed: [0cfc:001f][2016-12-09T04:19:02] Package ‘Win10SDK_10.0.14393.33,version=10.0.14393.3300’ failed to install. Command executed: «C:ProgramDataMicrosoftVisualStudioPackagesWin10SDK_10.0.14393.33,version=10.0.14393.3300packagesWin10SDK10.0.14393.33sdksetup.exe»
    /features OptionId.WindowsSoftwareDevelopmentKit OptionId.WindowsSoftwareLogoToolkit OptionId.NetFxSoftwareDevelopmentKit /quiet /norestart /OriginalSource «C:VS2017packagesWin10SDK10.0.14393.33sdksetup.exe», Return code: 15605, Details: There
    was a problem downloading your product.

    I was installing VS from an ISO image that i’ve downloaded while connected with a cable to the router (tried to eliminate WIFI issues). Is the Win 10 SDK related to the C++ tools? how can I get it to build?

    I have uploaded the logs of my Visual Studio installation, here they are: https://1drv.ms/u/s!ArdaoXN9TFnsao8uvnWxXLEuyIg

    I have to solve this issue ASAP, I was installing windows 7 and 10 and visual studio 2015 and 2017 and trying repairs for 10 days!!! 

    Thank you,

    Roy.

    • Edited by

      Saturday, December 10, 2016 8:19 PM

I switched a VS2015 solution to VS2017 and retargeted the solution and all of its projects to Windows SDK Version 10.0…. My project compiles fine offline for both VS2015 and VS2017. AppVeyor fails for the retargeted project:

Build started
git clone -q --branch=master https://github.com/matt77hias/MAGE.git C:projectsmage
git checkout -qf 226a67dfbcc29a26256153f2d2e8b0b2cb3bccf4
msbuild "C:projectsmageMAGEMAGE.sln" /verbosity:normal /logger:"C:Program FilesAppVeyorBuildAgentAppveyor.MSBuildLogger.dll"
Microsoft (R) Build Engine version 14.0.25420.1
Copyright (C) Microsoft Corporation. All rights reserved.
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Build started 8/13/2017 6:47:34 PM.
Project "C:projectsmageMAGEMAGE.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
  Building solution configuration "Release|x64".
The target "_ConvertPdbFiles" listed in a BeforeTargets attribute at "C:Program Files (x86)MSBuild14.0Microsoft.Common.targetsImportAfterXamarin.Common.targets (45,37)" does not exist in the project, and will be ignored.
The target "_CollectPdbFiles" listed in an AfterTargets attribute at "C:Program Files (x86)MSBuild14.0Microsoft.Common.targetsImportAfterXamarin.Common.targets (45,70)" does not exist in the project, and will be ignored.
The target "_CollectMdbFiles" listed in a BeforeTargets attribute at "C:Program Files (x86)MSBuild14.0Microsoft.Common.targetsImportAfterXamarin.Common.targets (52,38)" does not exist in the project, and will be ignored.
The target "_CopyMdbFiles" listed in an AfterTargets attribute at "C:Program Files (x86)MSBuild14.0Microsoft.Common.targetsImportAfterXamarin.Common.targets (52,71)" does not exist in the project, and will be ignored.
Project "C:projectsmageMAGEMAGE.sln" (1) is building "C:projectsmageMAGEMAGE.vcxproj" (2) on node 1 (default targets).
C:Program Files (x86)MSBuildMicrosoft.Cppv4.0V140Microsoft.Cpp.Platform.targets(57,5): error MSB8020: The build tools for v141 (Platform Toolset = 'v141') cannot be found. To build using the v141 build tools, please install v141 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:projectsmageMAGEMAGE.vcxproj]
Done Building Project "C:projectsmageMAGEMAGE.vcxproj" (default targets) -- FAILED.
The target "_ConvertPdbFiles" listed in a BeforeTargets attribute at "C:Program Files (x86)MSBuild14.0Microsoft.Common.targetsImportAfterXamarin.Common.targets (45,37)" does not exist in the project, and will be ignored.
The target "_CollectPdbFiles" listed in an AfterTargets attribute at "C:Program Files (x86)MSBuild14.0Microsoft.Common.targetsImportAfterXamarin.Common.targets (45,70)" does not exist in the project, and will be ignored.
The target "_CollectMdbFiles" listed in a BeforeTargets attribute at "C:Program Files (x86)MSBuild14.0Microsoft.Common.targetsImportAfterXamarin.Common.targets (52,38)" does not exist in the project, and will be ignored.
The target "_CopyMdbFiles" listed in an AfterTargets attribute at "C:Program Files (x86)MSBuild14.0Microsoft.Common.targetsImportAfterXamarin.Common.targets (52,71)" does not exist in the project, and will be ignored.
Done Building Project "C:projectsmageMAGEMAGE.sln" (default targets) -- FAILED.
Build FAILED.
"C:projectsmageMAGEMAGE.sln" (default target) (1) ->
"C:projectsmageMAGEMAGE.vcxproj" (default target) (2) ->
(PlatformPrepareForBuild target) -> 
  C:Program Files (x86)MSBuildMicrosoft.Cppv4.0V140Microsoft.Cpp.Platform.targets(57,5): error MSB8020: The build tools for v141 (Platform Toolset = 'v141') cannot be found. To build using the v141 build tools, please install v141 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:projectsmageMAGEMAGE.vcxproj]
    0 Warning(s)
    1 Error(s)
Time Elapsed 00:00:03.86
Command exited with code 1

Symptom

You have created a Unity project to create an app using MRTK2, and you want to use the new IL2CPP back-end. You open the solution in Visual Studio 2019, you try to deploy it by using Build/Deploy, and all the way at the end, the compiler complains about the «CL.exe» missing.

Alternatively, you might get the slightly more verbose error:

«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».»

Cause

You have most likely used the recommended Unity version (2018.4.2f1) to create the project. This version — the name gives it away — was released before Visual Studio 2019, and therefore, it assumes the presence of Visual Studio 2017 and it’s accompanying C++ tools set, ‘V141’. So, Unity generated a C++ solution referencing that toolset.

But now it’s 2019, you have kissed Visual Studio 2017 goodbye and installed Visual Studio 2019. And that comes with the toolset V142.

Either you install V141 using the Visual Studio Installer, or you tell the generated solution to use V142. I personally prefer the last one, because newer is always better, right?

Simply right-click the project in the solution that has «(Universal Windows)» behind its name, select properties, tab general, and then the problem is already pretty evident:

Simply select Visual Studio 2019 (142) for the Project Toolset and you are good to go. This setting will stay as long as you don’t delete the generated project — Unity will simply change what needs to be changed, and leave as much as it can (to speed up the generation process).

Conclusion

While this was a simple fix, it can be hard to find. Hence, a simple blog about it.

Hope you learned something!

Locate (Unix)
unity
Build (game engine)
Game engine
IT
app
Installer (macOS)
Property (programming)
Blog

Reply

Old
04-18-2017, 12:56 PM

 
#1

Human being with feelings

 

keyman_sam's Avatar

 

Join Date: Jun 2006

Posts: 2,558

Default
Build Tools v141 cannot be found!


I went through the WDL-OL tutorial step-by-step, even installed the massive Visual Studio 2015 to get it working. When I build the solution it shows the following error:

Severity Code Description Project File Line Suppression State
Error MSB8020 The build tools for v141 (Platform Toolset = ‘v141’) cannot be found. To build using the v141 build tools, please install v141 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». lice C:Program Files (x86)MSBuildMicrosoft.Cppv4.0V140Microsoft.Cp p.Platform.targets 57

Tried installing build tools as well as retargeting and no dice yet. Any hints? This is way more difficult than I imagined.

keyman_sam is offline

 

Reply With Quote

Old
04-18-2017, 01:42 PM

 
#2

Human being with feelings

 

random_id's Avatar

 

Join Date: May 2012

Location: PA, USA

Posts: 356

Default


I believe this error is because Visual Studio is looking for the v141 build tools (Visual Studio 2017), instead of v14 (Visual Studio 2015).

Right-click on ‘pluginname-vst2’ to get to the property page. Under ‘General’, you should see the Platform Toolset. Clicking that should show you a drop-down of the installed toolsets you have.

To build a plugin, lice, iplug, and your plugin all have to have the same toolset selected under properties. Just remember that in Visual Studio, you can select different toolsets for 64 and 32-bit builds, as well as release and debug. At the top of the properties, you can select these options.

It is a pain, especially when you are updating to a new version of Visual Studio or using someone’s code who uses a different version. After you have it setup, you shouldn’t have to touch it again (until the next VS version).

__________________
Website: LVC-Audio

random_id is offline

 

Reply With Quote

Old
04-19-2017, 05:09 PM

 
#3

Human being with feelings

 

keyman_sam's Avatar

 

Join Date: Jun 2006

Posts: 2,558

Default


Quote:

Originally Posted by random_id
View Post

I believe this error is because Visual Studio is looking for the v141 build tools (Visual Studio 2017), instead of v14 (Visual Studio 2015).

Right-click on ‘pluginname-vst2’ to get to the property page. Under ‘General’, you should see the Platform Toolset. Clicking that should show you a drop-down of the installed toolsets you have.

To build a plugin, lice, iplug, and your plugin all have to have the same toolset selected under properties. Just remember that in Visual Studio, you can select different toolsets for 64 and 32-bit builds, as well as release and debug. At the top of the properties, you can select these options.

It is a pain, especially when you are updating to a new version of Visual Studio or using someone’s code who uses a different version. After you have it setup, you shouldn’t have to touch it again (until the next VS version).

The properties page shows that I only have v140 installed. Apparently it needs 141. When I open the props file for the project there’s no mention of toolset. It only shows <Project ToolsVersion = 4.0> whatever that is.

I tried setting the project tools version to 140 for all the projects, still no luck. Same error. :-/ Really appreciate your help! I’d love to get this working asap so I can actually build the plugin.

keyman_sam is offline

 

Reply With Quote

Old
04-19-2017, 05:18 PM

 
#4

Human being with feelings

 

random_id's Avatar

 

Join Date: May 2012

Location: PA, USA

Posts: 356

Default


IF you right-click on the lice and IPlug projects, do they build successfully?

__________________
Website: LVC-Audio

random_id is offline

 

Reply With Quote

Old
04-20-2017, 09:26 AM

 
#5

Human being with feelings

 

keyman_sam's Avatar

 

Join Date: Jun 2006

Posts: 2,558

Default


Quote:

Originally Posted by random_id
View Post

IF you right-click on the lice and IPlug projects, do they build successfully?

Nope. Same error. Also the lice and iplug show «Pending edits» as the status (if that helps).

This is a lot more trouble than it was last time where I built the sdk and my vst. Granted it didn’t have multiple targets but atleast getting «AGain» to work was pretty simple. :-/

keyman_sam is offline

 

Reply With Quote

Old
04-20-2017, 05:02 PM

 
#6

Human being with feelings

 

random_id's Avatar

 

Join Date: May 2012

Location: PA, USA

Posts: 356

Default


Try closing you plugin in Visual Studio and loading the Lice project within the WDL/lice folder. Make sure you change the properties of the project to use the v14 build tools. Then you should be able to build lice.

If you are still getting the same errors regarding the v141 build tools, it means that the properties aren’t set right. It is a pain, but Visual Studio (much in the same way XCode does), lets you specify different options for debug and release, as well as 32 bit and 64 bit builds.

__________________
Website: LVC-Audio

random_id is offline

 

Reply With Quote

Old
04-22-2017, 10:23 AM

 
#7

Human being with feelings

 

keyman_sam's Avatar

 

Join Date: Jun 2006

Posts: 2,558

Default


Lice build works after changing the build/release to x64 instead of x86. How do I get the rest of the project to compile?

keyman_sam is offline

 

Reply With Quote

Old
04-23-2017, 05:09 AM

 
#8

Human being with feelings

 

random_id's Avatar

 

Join Date: May 2012

Location: PA, USA

Posts: 356

Default


Try doing the same thing with the IPlug porject within the WDL/IPlug folder. Then, try to load your plugin, confirm the settings, and build.

__________________
Website: LVC-Audio

random_id is offline

 

Reply With Quote

Reply


Posting Rules

You may not post new threads

You may not post replies

You may not post attachments

You may not edit your posts


BB code is On

Smilies are On

[IMG] code is On

HTML code is Off


Forum Rules

Forum Jump

All times are GMT -7. The time now is 07:40 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 — 2023, vBulletin Solutions Inc.

i am trying to bbuild c++ projectin visual studio 2017, but i am getting below error

Severity Code Description Project File Line Suppression State
Error MSB8020 The build tools for v141 (Platform Toolset = ‘v141’) cannot be found. To build using the v141 build tools, please install v141 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». csiNotificationProvider C:Program Files (x86)MSBuildMicrosoft.Cppv4.0v140Microsoft.Cpp.Platform.targets 57

What I have tried:

i have already installed specific c++ library.

and also tried below but no luck

I applied these commands in succession

npm install -g node-gyp

npm install --global --production windows-build-tools

Updated 20-Jan-22 12:50pm


The easiest way would be to change the Platform Toolset to an installed version in the project properties. Best for release and build and all bit widths.

If the installed toolsets do not work, the installation may need to be repaired.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject,
20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8
+1 (416) 849-8900

Содержание

  1. Как установить (v142) Инструменты сборки в Visual studio
  2. 9 ответов
  3. Русские Блоги
  4. Решение ошибки ошибки миграции платформы VS MSB8020: инструменты сборки для V141
  5. Интеллектуальная рекомендация
  6. IView CDN Загрузка значка шрифта нормальная, а значок шрифта не может быть загружен при локальной загрузке JS и CSS
  7. Критическое: ошибка настройки прослушивателя приложения класса org.springframework.web.context.ContextLoaderLis
  8. 1086 Не скажу (15 баллов)
  9. Pandas применяют параллельный процесс приложения, многоядерная скорость очистки данных
  10. PureMVC Learning (Tucao) Примечания
  11. Как установить (v142) инструменты сборки в Visual Studio
  12. 10 ответов
  13. Изменить целевую платформу решения
  14. Решение
  15. Другие решения
  16. 5 ответов

Как установить (v142) Инструменты сборки в Visual studio

Поскольку я пытаюсь что-то построить в visual studio, то visual studio показывает мне предупреждение, а затем, если я проигнорировал это и произвел build, то произошла ошибка.

Это также покажет мне альтернативный вариант, который я тоже пробовал, но не работает.

9 ответов

У меня была такая же проблема, но когда я пытался открыть проект, сделанный в VS2019, с помощью VS2017, я изменил это в своем проекте:

Перейдите в: Project->Properties->General->Platform Toolset и измените текущую версию своего VS.

Это сработало для меня!

Суть в том, что вам необходимо установить Visual Studio 2019 для доступа к инструментам v142.

Наряду с различными версиями Visual Studio (VS2015, VS2017, VS2019) Microsoft также выпускает различные версии инструментов сборки, поскольку они продолжают улучшать компилятор и предоставлять дополнительные возможности и соответствовать обновленным языковым стандартам (C++, C++11, C++17 и др.). См. Visual Studio 2015, не обнаруживающую инструменты сборки v141 (2017).

См. Также это сообщение в блоге Microsoft об инструментах сборки для VS2017 и доступе к более ранней версии v140 из VS2015. Инструменты сборки Visual Studio теперь включают наборы инструментов VS2017 и VS2015 MSVC.

Многие из вас сказали нам, что вам все еще нужен набор инструментов MSVC v140 из Visual Studio 2015, чтобы продолжить создание старых кодовых баз. Мы обновили инструменты сборки Visual Studio, включив в них набор инструментов v140 из Visual Studio 2015 с обновлением 3, включая последний выпуск обслуживания. Вы можете заметить, что версия сборки набора инструментов компилятора может не соответствовать версии в полной установке VS 2015, даже если это одни и те же компиляторы. Это происходит потому, что мы создаем полную Visual Studio и инструменты сборки Visual Studio в отдельных ветках, которые могут быть созданы в разные дни.

Рабочая нагрузка инструментов сборки Visual C++ в Visual Studio Build Tools по умолчанию устанавливает последний набор инструментов v141 из VS2017. Набор инструментов v140 из VS2015 будет устанавливаться параллельно с набором инструментов v141. Чтобы установить их, просто выберите «Набор инструментов VC++ 2015.3 v140 для настольных ПК (x86,x64)» в нижней части раздела «Дополнительно».

В вашем случае инструменты сборки V142 были выпущены с VS2019. Не похоже, что версия 142 доступна для VS2017. Последние инструменты сборки для VS2017 выглядят как v141.

Вы можете использовать установщик Visual Studio для изменения доступных инструментов сборки путем добавления или удаления из списка. В этом сообщении SO описывается аналогичная проблема, но с отсутствием v140 в установке VS2015 Visual Studio. Ошибка MSbuild: инструменты сборки для v140 (Platform Toolset = ‘v140’) не могут быть найдены

Однако, если Microsoft не выпустила конкретную версию Build Tools для используемой вами Visual Studio, она не будет отображаться в списке доступных наборов инструментов.

В качестве побочного примечания, делая небольшое открытие по этому вопросу, я нашел несколько статей, в которых указано, что если у вас установлена ​​последняя версия Visual Studio, а затем установлена ​​более ранняя версия Visual Studio, инструменты целевой сборки по умолчанию также могут измениться на инструменты сборки для более ранней установки.

Другими словами, если у вас есть VS2019 с уже установленной целью по умолчанию v142, а затем устанавливается VS2017, цель по умолчанию изменится на v141, требуя, чтобы вы фактически установили цель сборки на v142 при использовании VS2019.

Похоже, что начиная с VS2015, Microsoft предоставляет стандартный движок Visual Studio, который является общим для VS 2015, VS2017 и VS2019, с обновленными инструментами сборки и различными компонентами для обеспечения новых функций и соответствия новым языковым стандартам. Существуют зависимости между версией Visual Studio и тем, какие инструменты и компоненты сборки можно использовать с версией Visual Studio, например, версия 142 недоступна для VS2017, скорее всего, для стимулирования покупки нового продукта.

Источник

Русские Блоги

Решение ошибки ошибки миграции платформы VS MSB8020: инструменты сборки для V141

Поместите программу, составленную на VS2017 в VS2013, и сообщите об ошибке:

error MSB8020: The build tools for v141 (Platform Toolset = ‘v141’) cannot be found. To build using the v141 build tools, please install v141 build tools.

Это связано с тем, что набор инструментов платформы не соответствует. V141 — это набор инструментов платформы VS2015. VS2013 не имеет этого набора инструментов, поэтому его можно изменить на V120.

Project- «Свойства-» Свойства конфигурации-обычная сборы платформ

Интеллектуальная рекомендация

IView CDN Загрузка значка шрифта нормальная, а значок шрифта не может быть загружен при локальной загрузке JS и CSS

Используйте iview, чтобы сделать небольшой инструмент. Чтобы не затронуть другие платформы, загрузите JS и CSS CDN на локальные ссылки. В результате значок шрифта не может быть загружен. Просмо.

Критическое: ошибка настройки прослушивателя приложения класса org.springframework.web.context.ContextLoaderLis

1 Обзор Серверная программа, которая обычно запускалась раньше, открылась сегодня, и неожиданно появилась эта ошибка. Интуитивно понятно, что не хватает связанных с Spring пакетов, но после удаления п.

1086 Не скажу (15 баллов)

При выполнении домашнего задания друг, сидящий рядом с ним, спросил вас: «Сколько будет пять умножить на семь?» Вы должны вежливо улыбнуться и сказать ему: «Пятьдесят три». Это.

Pandas применяют параллельный процесс приложения, многоядерная скорость очистки данных

В конкурсе Algorith Algorith Algorith Algorith Algorith 2019 года используется многофункциональная уборка номера ускорения. Будет использовать панды. Но сама панда, кажется, не имеет механизма для мно.

PureMVC Learning (Tucao) Примечания

Справочная статья:Введение подробного PrueMVC Использованная литература:Дело UnityPureMvc Основная цель этой статьи состоит в том, чтобы организовать соответствующие ресурсы о PureMVC. Что касается Pu.

Источник

Как установить (v142) инструменты сборки в Visual Studio

Когда я пытаюсь создать что-то в Visual Studio, Visual Studio покажет мне какое-то предупреждение, а затем, если я проигнорирую его и построю, возникнет ошибка.

Он также покажет мне альтернативный вариант, который я тоже пробовал, но не работает.

10 ответов

Спасибо — это зависит от того, как вы продвигаетесь в своем проекте. Файл проекта, по-видимому, построен с использованием v142, однако это НЕ ОБЯЗАТЕЛЬНО. Таким образом, вы можете просто использовать указанное выше решение и использовать имеющуюся у вас версию «инструмента сборки». Точно так же могут быть другие версии VS, которые можно использовать — я преодолел это, и проект был построен без каких-либо видимых проблем.

Думаю, это будет часто случаться, когда вы получаете проект от профессионального разработчика и хотите создать его с помощью бесплатной версии VS!

У меня была такая же проблема, но при попытке открыть проект, созданный в VS2019, с помощью VS2017, поэтому я изменил это в своем проекте:

Перейдите в: Project-> Properties-> General-> Platform Toolset и измените текущую версию своего VS.

Я использую Visual Studio 2017 и Visual Studio 2019 на двух разных компьютерах, и у меня регулярно возникают проблемы с набором инструментов платформы.

В VS 2019 при открытии решения / проекта, созданного с помощью VS2017, я обычно просто перехожу к «проектам» в строке меню вверху и выбираю «перенацеливание решения» (это, вероятно, устанавливает платформу на V142).

Напротив, в VS 2017 при открытии решения / проекта, созданного с помощью VS2019 (набор инструментов платформы v142), чтобы позволить ему работать, мне нужно «понизить» его до платформы v141. Для этого я щелкаю правой кнопкой мыши по проекту (а не по решению) и выбираю свойства, затем «Общие» и ищу «набор инструментов платформы», который я установил на «Visual studio 2017 (v141)», а затем я могу снова скомпилировать без ошибок. .

Суть в том, что вам необходимо установить Visual Studio 2019 для доступа к инструментам v142.

Наряду с различными версиями Visual Studio (VS2015, VS2017, VS2019) Microsoft также выпускает разные версии инструментов сборки, поскольку они продолжают улучшать компилятор и предоставлять дополнительные возможности и соответствовать обновленным языковым стандартам (C ++, C ++ 11, C ++ 17 и др.). См. Visual Studio 2015 не обнаруживает инструменты сборки v141 (2017)

См. Также это сообщение в блоге Microsoft об инструментах сборки для VS2017 и доступе к более ранней версии v140 из VS2015, Инструменты сборки Visual Studio теперь включают наборы инструментов VS2017 и VS2015 MSVC.

Многие из вас сказали нам, что вам все еще нужен набор инструментов MSVC v140 из Visual Studio 2015, чтобы продолжить создание старых кодовых баз. Мы обновили инструменты сборки Visual Studio, включив в него набор инструментов v140 из Visual Studio 2015 с обновлением 3, включая самый последний выпуск обслуживания. Вы можете заметить, что версия сборки набора инструментов компилятора может не соответствовать версии в полной установке VS 2015, даже если это одни и те же компиляторы. Это происходит потому, что мы создаем полную Visual Studio и инструменты сборки Visual Studio в отдельных ветвях, которые могут быть созданы в разные дни.

Рабочая нагрузка инструментов сборки Visual C ++ в Visual Studio Build Tools по умолчанию устанавливает последний набор инструментов v141 из VS2017. Набор инструментов v140 из VS2015 будет устанавливаться параллельно с набором инструментов v141. Чтобы установить их, просто выберите «Набор инструментов VC ++ 2015.3 v140 для настольных ПК (x86, x64)» в нижней части раздела «Необязательно».

В вашем случае инструменты сборки V142 были выпущены с VS2019. Не похоже, что версия 142 доступна для VS2017. Самые последние инструменты сборки для VS2017 выглядят как v141.

Вы можете использовать установщик Visual Studio для изменения доступных инструментов сборки, добавляя или удаляя их из списка. В этом сообщении SO описывается аналогичная проблема, но с отсутствием v140 в установке VS2015 Visual Studio. Ошибка MSbuild: инструменты сборки для v140 (Platform Toolset = ‘v140’) не может быть найден

Однако, если Microsoft не выпустила конкретную версию Build Tools для используемой вами Visual Studio, она не будет отображаться в списке доступных наборов инструментов.

Похоже, что начиная с VS2015, Microsoft предоставляет стандартный движок Visual Studio, который используется в VS 2015, VS2017 и VS2019, с обновленными инструментами сборки и различными компонентами для обеспечения новых функций и соответствия новым языковым стандартам. Существуют зависимости между версией Visual Studio и тем, какие инструменты и компоненты сборки можно использовать с версией Visual Studio, например Версия 142 недоступна для VS2017, скорее всего, чтобы стимулировать покупку нового продукта.

При установке VS2017 после установки VS2019

В качестве побочного примечания, делая небольшое открытие по этому вопросу, я нашел несколько статей, в которых указано, что если у вас установлена ​​последняя версия Visual Studio, а затем установлена ​​более ранняя версия Visual Studio, инструменты целевой сборки по умолчанию также могут измениться на инструменты сборки для более ранней установки.

Другими словами, если у вас есть VS2019 с уже установленной целью по умолчанию v142, а затем установите VS2017, цель по умолчанию изменится на v141, требуя, чтобы вы фактически установили цель сборки на v142 при использовании VS2019.

Источник

Изменить целевую платформу решения

Проект не запускается и выдаёт вот такую ошибку:

Ошибка MSBuild MSB8020
Не удалось найти средства сборки для v142 (набор средств платформы = «v142»). Чтобы выполнить сборку с помощью версии v142 средств сборки, установите средства сборки v142. Также можно выполнить обновление до текущих средств Visual Studio, выбрав меню «Проект» или щелкнув правой кнопкой мыши решение, а затем выбрав «Изменить целевую платформу решения».

При нажатии на «Изменить целевую платформу решения» появляется это окно. Но при изменении версии пакета ничего не меняется. Ошибка остаётся.

Как я могу изменить целевую платформу на Windows 7? Все, что я могу выбрать, это Windows 8.1, и поэтому мой проект не работает на Windows 7. Тот же проект, который я использовал для компиляции на моем старом ПК с Windows 7 с помощью Visual Studio 2013. И, конечно, он работал там.

Я уже пытался установить Windows 7 SDK, но, к сожалению, это не работает, так как требует Net Framework 4.0, который я больше не могу установить. (Windows 10 включает в себя 4.6?) — https://msdn.microsoft.com/en-us/en-en/library/ff770576.aspx

Решение

Версия целевой платформы

Для работы с Windows 7 или Windows Vista используйте значение 8.1, поскольку Windows SDK 8.1 обратно совместим с этими платформами. Кроме того, вы должны определить соответствующее значение для _WIN32_WINNT в targetver.h. Для Windows 7 это 0×0601. Увидеть Изменение WINVER и _WIN32_WINNT .

Другие решения

Чтобы получить дополнительные целевые платформы (то есть более старые компиляторы Visual C), установите соответствующие более старые версии Visual Studio параллельно.

Например, если вы хотите использовать Visual Studio 2017 в графическом интерфейсе и хотите выполнить сборку с VC2008 (msvc90), установите Visual Studio 2008 параллельно с Visual Studio 2017. В VS2017 в настройках сборки вы можете выбрать «VC». 2008 «построить цель.

есть ли способ в Visual Studio 2010 изменить целевую платформу по умолчанию, на которую указывают проекты при их создании? Я хочу нацелиться на 4.0. framework по умолчанию, а не версия профиля клиента платформы 4.0.

5 ответов

Visual Studio 2010 (и более старые версии) запомнит последнюю целевую платформу, которую вы выбрали при использовании File -> New -> New Project . Таким образом, если вы создадите новый проект с помощью 4.0, в следующий раз при создании нового проекта 4.0 будет выбрана целевая платформа.

EDIT: далее комментарий ниже:

посмотрев на это немного больше, есть еще одно решение, которое немного менее фаффи, чем информация по ссылке, которую я опубликовал в комментариях под.

создайте новое решение / проект с необходимой настройкой, затем goto File -> Export Template . После того, как вы сделали там, вы можете использовать свой новый шаблон, когда вы идете File -> New -> New Project .

кажется, работает,но не полностью протестирован.

есть способ изменить его, взломав шаблон:

что, вероятно, близко к тому же, что и ответ MrEyes.

Я знаю, что вопрос был первоначально для VS2010, но в Visual Studio 2015 гораздо проще изменить целевую структуру по умолчанию.

при добавлении нового проекта измените структуру вверху —

когда вы пришли, чтобы добавить другой проект, я обнаружил, что VS помнит последний выбор, который я сделал.

вот как вы делаете это с VS2008. Похоже, такой же (той же?) процесс для VS2010. (Я просто сделал это в своей собственной среде разработки VS2010.)

  • Правой Кнопкой Мыши на имя проекта.
  • перейдите на вкладку Приложения.
  • в списке «целевая структура» Выберите структуру, которую вы хотите использовать. Он будет отличаться в зависимости от того, какие .NET-фреймворки доступны в вашей системе.

Это так же просто, как в вашей Visual studio.

перейдите в 4-й пункт меню сверху, «веб-сайт».

В разделе веб-сайты перейдите к опции «параметры запуска».

В разделе Параметры запуска перейдите к опции’ build’.

измените целевую структуру там на то, что так когда-либо рамки.

Источник

Понравилась статья? Поделить с друзьями:
  • Error msb4057 the target build does not exist in the project
  • Error msb4025 не удалось загрузить файл проекта
  • Error msb4019 импортированный проект c microsoft cpp default props не обнаружен
  • Error msb4018 непредвиденная ошибка при выполнении задачи resolvepackageassets
  • Error msb4018 the vcmessage task failed unexpectedly