Build cant find platform toolset v141





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















I'm trying to get a C++ solution converted from VS2013 to VS2017 to build on a build server using TFS 2010 but the build cant find the platform toolset.
I keep getting the error message:



error MSB8008: Specified platform toolset (v141) is not installed or invalid.


I've installed VS2017 (not just the Build Tools) on the build server and checked that the platform toolset v141 is installed.



I've update the .proj file to use ToolsVersion 15.0 and the project files in the solution are all updated to use ToolsVersion 15.0.



I've also added /p:VisualStudioVersion=15.0 to the MSBuild arguments in the build definition.



Can someone give me a hint of what else to check? I'm running out of ideas.



I did see that the error message contains this:



C:Program Files (x86)MSBuildMicrosoft.Cppv4.0PlatformsWin32Microsoft.Cpp.Win32.Targets(511,5): error MSB8008: Specified platform toolset (v141) is not installed or invalid.


The path contains v4.0, shouldn't it be v15.0? Is there a reference to something that is incorrect?
However, this doesn't seem to be a problem in another project that is built in VS2015 so I'm not sure this is a problem.



I hope someone can help me.



Regards
Mattias










share|improve this question





























    0















    I'm trying to get a C++ solution converted from VS2013 to VS2017 to build on a build server using TFS 2010 but the build cant find the platform toolset.
    I keep getting the error message:



    error MSB8008: Specified platform toolset (v141) is not installed or invalid.


    I've installed VS2017 (not just the Build Tools) on the build server and checked that the platform toolset v141 is installed.



    I've update the .proj file to use ToolsVersion 15.0 and the project files in the solution are all updated to use ToolsVersion 15.0.



    I've also added /p:VisualStudioVersion=15.0 to the MSBuild arguments in the build definition.



    Can someone give me a hint of what else to check? I'm running out of ideas.



    I did see that the error message contains this:



    C:Program Files (x86)MSBuildMicrosoft.Cppv4.0PlatformsWin32Microsoft.Cpp.Win32.Targets(511,5): error MSB8008: Specified platform toolset (v141) is not installed or invalid.


    The path contains v4.0, shouldn't it be v15.0? Is there a reference to something that is incorrect?
    However, this doesn't seem to be a problem in another project that is built in VS2015 so I'm not sure this is a problem.



    I hope someone can help me.



    Regards
    Mattias










    share|improve this question

























      0












      0








      0








      I'm trying to get a C++ solution converted from VS2013 to VS2017 to build on a build server using TFS 2010 but the build cant find the platform toolset.
      I keep getting the error message:



      error MSB8008: Specified platform toolset (v141) is not installed or invalid.


      I've installed VS2017 (not just the Build Tools) on the build server and checked that the platform toolset v141 is installed.



      I've update the .proj file to use ToolsVersion 15.0 and the project files in the solution are all updated to use ToolsVersion 15.0.



      I've also added /p:VisualStudioVersion=15.0 to the MSBuild arguments in the build definition.



      Can someone give me a hint of what else to check? I'm running out of ideas.



      I did see that the error message contains this:



      C:Program Files (x86)MSBuildMicrosoft.Cppv4.0PlatformsWin32Microsoft.Cpp.Win32.Targets(511,5): error MSB8008: Specified platform toolset (v141) is not installed or invalid.


      The path contains v4.0, shouldn't it be v15.0? Is there a reference to something that is incorrect?
      However, this doesn't seem to be a problem in another project that is built in VS2015 so I'm not sure this is a problem.



      I hope someone can help me.



      Regards
      Mattias










      share|improve this question














      I'm trying to get a C++ solution converted from VS2013 to VS2017 to build on a build server using TFS 2010 but the build cant find the platform toolset.
      I keep getting the error message:



      error MSB8008: Specified platform toolset (v141) is not installed or invalid.


      I've installed VS2017 (not just the Build Tools) on the build server and checked that the platform toolset v141 is installed.



      I've update the .proj file to use ToolsVersion 15.0 and the project files in the solution are all updated to use ToolsVersion 15.0.



      I've also added /p:VisualStudioVersion=15.0 to the MSBuild arguments in the build definition.



      Can someone give me a hint of what else to check? I'm running out of ideas.



      I did see that the error message contains this:



      C:Program Files (x86)MSBuildMicrosoft.Cppv4.0PlatformsWin32Microsoft.Cpp.Win32.Targets(511,5): error MSB8008: Specified platform toolset (v141) is not installed or invalid.


      The path contains v4.0, shouldn't it be v15.0? Is there a reference to something that is incorrect?
      However, this doesn't seem to be a problem in another project that is built in VS2015 so I'm not sure this is a problem.



      I hope someone can help me.



      Regards
      Mattias







      msbuild visual-studio-2017






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 22 '18 at 14:36









      ErnisErnis

      135




      135
























          1 Answer
          1






          active

          oldest

          votes


















          0















          Build cant find platform toolset v141




          As far as I know, you may had to amended the build templates to point to MSBuild version 15.0. There are two parameters including ToolPath and Toolversion to set, edit template change msbuild activity ToolPath to "C:Program Files (x86)Microsoft Visual Studio2017EnterpriseMSBuild15.0BinMSBuild.exe".



          For some more details, you can check the thread BuildActivity ignores ToolsVersion for more details.



          Hope this helps.






          share|improve this answer
























          • Adding ToolPath to the build process template and overriding the property MSBuildExtensionsPath in the project file solved the issue.

            – Ernis
            Nov 27 '18 at 12:26











          • @Ernis, Since above answer resolved your question, you could Accept it as an Answer. This can be beneficial to other community members reading this thread and we could close this thread, thanks.

            – Leo Liu-MSFT
            Nov 27 '18 at 13:51












          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53433243%2fbuild-cant-find-platform-toolset-v141%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0















          Build cant find platform toolset v141




          As far as I know, you may had to amended the build templates to point to MSBuild version 15.0. There are two parameters including ToolPath and Toolversion to set, edit template change msbuild activity ToolPath to "C:Program Files (x86)Microsoft Visual Studio2017EnterpriseMSBuild15.0BinMSBuild.exe".



          For some more details, you can check the thread BuildActivity ignores ToolsVersion for more details.



          Hope this helps.






          share|improve this answer
























          • Adding ToolPath to the build process template and overriding the property MSBuildExtensionsPath in the project file solved the issue.

            – Ernis
            Nov 27 '18 at 12:26











          • @Ernis, Since above answer resolved your question, you could Accept it as an Answer. This can be beneficial to other community members reading this thread and we could close this thread, thanks.

            – Leo Liu-MSFT
            Nov 27 '18 at 13:51
















          0















          Build cant find platform toolset v141




          As far as I know, you may had to amended the build templates to point to MSBuild version 15.0. There are two parameters including ToolPath and Toolversion to set, edit template change msbuild activity ToolPath to "C:Program Files (x86)Microsoft Visual Studio2017EnterpriseMSBuild15.0BinMSBuild.exe".



          For some more details, you can check the thread BuildActivity ignores ToolsVersion for more details.



          Hope this helps.






          share|improve this answer
























          • Adding ToolPath to the build process template and overriding the property MSBuildExtensionsPath in the project file solved the issue.

            – Ernis
            Nov 27 '18 at 12:26











          • @Ernis, Since above answer resolved your question, you could Accept it as an Answer. This can be beneficial to other community members reading this thread and we could close this thread, thanks.

            – Leo Liu-MSFT
            Nov 27 '18 at 13:51














          0












          0








          0








          Build cant find platform toolset v141




          As far as I know, you may had to amended the build templates to point to MSBuild version 15.0. There are two parameters including ToolPath and Toolversion to set, edit template change msbuild activity ToolPath to "C:Program Files (x86)Microsoft Visual Studio2017EnterpriseMSBuild15.0BinMSBuild.exe".



          For some more details, you can check the thread BuildActivity ignores ToolsVersion for more details.



          Hope this helps.






          share|improve this answer














          Build cant find platform toolset v141




          As far as I know, you may had to amended the build templates to point to MSBuild version 15.0. There are two parameters including ToolPath and Toolversion to set, edit template change msbuild activity ToolPath to "C:Program Files (x86)Microsoft Visual Studio2017EnterpriseMSBuild15.0BinMSBuild.exe".



          For some more details, you can check the thread BuildActivity ignores ToolsVersion for more details.



          Hope this helps.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 23 '18 at 7:47









          Leo Liu-MSFTLeo Liu-MSFT

          21.9k22735




          21.9k22735













          • Adding ToolPath to the build process template and overriding the property MSBuildExtensionsPath in the project file solved the issue.

            – Ernis
            Nov 27 '18 at 12:26











          • @Ernis, Since above answer resolved your question, you could Accept it as an Answer. This can be beneficial to other community members reading this thread and we could close this thread, thanks.

            – Leo Liu-MSFT
            Nov 27 '18 at 13:51



















          • Adding ToolPath to the build process template and overriding the property MSBuildExtensionsPath in the project file solved the issue.

            – Ernis
            Nov 27 '18 at 12:26











          • @Ernis, Since above answer resolved your question, you could Accept it as an Answer. This can be beneficial to other community members reading this thread and we could close this thread, thanks.

            – Leo Liu-MSFT
            Nov 27 '18 at 13:51

















          Adding ToolPath to the build process template and overriding the property MSBuildExtensionsPath in the project file solved the issue.

          – Ernis
          Nov 27 '18 at 12:26





          Adding ToolPath to the build process template and overriding the property MSBuildExtensionsPath in the project file solved the issue.

          – Ernis
          Nov 27 '18 at 12:26













          @Ernis, Since above answer resolved your question, you could Accept it as an Answer. This can be beneficial to other community members reading this thread and we could close this thread, thanks.

          – Leo Liu-MSFT
          Nov 27 '18 at 13:51





          @Ernis, Since above answer resolved your question, you could Accept it as an Answer. This can be beneficial to other community members reading this thread and we could close this thread, thanks.

          – Leo Liu-MSFT
          Nov 27 '18 at 13:51




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53433243%2fbuild-cant-find-platform-toolset-v141%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          How to pass form data using jquery Ajax to insert data in database?

          National Museum of Racing and Hall of Fame

          Guess what letter conforming each word