none
Specified platform toolset (v110) is not installed or invalid:

    Question

  • Hi,

    First, i would to say that i've searched on the forum to try to solve my problem without succes (maybe i've not understand the solutions proposed).

    My configuration:
        Windows Seven 64bits.
        Visual Studio 2012 Ultimate.
        Team Foundation Service.

    My projet:
        One solution.
        One project for the architecure.
        Three empty project C++ Win32.

    My Problem:
    I have problem to configure the "Automatically Build" with Team Foundation Service.

    I've created a build definition with these parameters:

    (i can't put picture so i will write the config):

    The build configuration is:

    1. Git

    1. Clean repository = true

    2.Build

    1. Solution to build = /ZV-1-Experimentation/ZV-1-Experimentation.sln

    2. Configuration to build = Debug

    3. Platform to build = Win32

    3. Test (Skip cause not important i think).

    4. Advanced

    Database Logging verbosity = Normal

    MSBuild arguments =

    MSBuild multi-proc = True

    MSBuild Platform = Auto

    5. Avancé (skip).



    When the build is running i receive this output:

    Build started 8/9/2013 4:46:52 PM.
    Project "C:\a\src\ZV-1-Experimentation\ZV-1-Experimentation.sln" on node 1 (default targets).
    ValidateSolutionConfiguration:
      Building solution configuration "Debug|Win32".
    ValidateProjects:
      The project "Architecture-V1" is not selected for building in solution configuration "Debug|Win32".
    Project "C:\a\src\ZV-1-Experimentation\ZV-1-Experimentation.sln" (1) is building "C:\a\src\ZV-1-Experimentation\ZV-1-Experimentation-Client\ZV-1-Experimentation-Client.vcxproj" (2) on node 1 (default targets).
    C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets(518,5): error MSB8008: Specified platform toolset (v110) is not installed or invalid. Please make sure that a supported PlatformToolset value is selected. [C:\a\src\ZV-1-Experimentation\ZV-1-Experimentation-Client\ZV-1-Experimentation-Client.vcxproj]
    Done Building Project "C:\a\src\ZV-1-Experimentation\ZV-1-Experimentation-Client\ZV-1-Experimentation-Client.vcxproj" (default targets) -- FAILED.
    Project "C:\a\src\ZV-1-Experimentation\ZV-1-Experimentation.sln" (1) is building "C:\a\src\ZV-1-Experimentation\ZV-1-Experimentation-Serveur-Central\ZV-1-Experimentation-Serveur-Central.vcxproj" (3) on node 1 (default targets).
    C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets(518,5): error MSB8008: Specified platform toolset (v110) is not installed or invalid. Please make sure that a supported PlatformToolset value is selected. [C:\a\src\ZV-1-Experimentation\ZV-1-Experimentation-Serveur-Central\ZV-1-Experimentation-Serveur-Central.vcxproj]
    Done Building Project "C:\a\src\ZV-1-Experimentation\ZV-1-Experimentation-Serveur-Central\ZV-1-Experimentation-Serveur-Central.vcxproj" (default targets) -- FAILED.
    Project "C:\a\src\ZV-1-Experimentation\ZV-1-Experimentation.sln" (1) is building "C:\a\src\ZV-1-Experimentation\ZV-1-Experimentation-Serveur-Jeu\ZV-1-Experimentation-Serveur-Jeu.vcxproj" (4) on node 1 (default targets).
    C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets(518,5): error MSB8008: Specified platform toolset (v110) is not installed or invalid. Please make sure that a supported PlatformToolset value is selected. [C:\a\src\ZV-1-Experimentation\ZV-1-Experimentation-Serveur-Jeu\ZV-1-Experimentation-Serveur-Jeu.vcxproj]
    Done Building Project "C:\a\src\ZV-1-Experimentation\ZV-1-Experimentation-Serveur-Jeu\ZV-1-Experimentation-Serveur-Jeu.vcxproj" (default targets) -- FAILED.
    Done Building Project "C:\a\src\ZV-1-Experimentation\ZV-1-Experimentation.sln" (default targets) -- FAILED.

    Build FAILED.

    "C:\a\src\ZV-1-Experimentation\ZV-1-Experimentation.sln" (default target) (1) ->
    "C:\a\src\ZV-1-Experimentation\ZV-1-Experimentation-Client\ZV-1-Experimentation-Client.vcxproj" (default target) (2) ->
    (PlatformPrepareForBuild target) ->
      C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets(518,5): error MSB8008: Specified platform toolset (v110) is not installed or invalid. Please make sure that a supported PlatformToolset value is selected. [C:\a\src\ZV-1-Experimentation\ZV-1-Experimentation-Client\ZV-1-Experimentation-Client.vcxproj]


    "C:\a\src\ZV-1-Experimentation\ZV-1-Experimentation.sln" (default target) (1) ->
    "C:\a\src\ZV-1-Experimentation\ZV-1-Experimentation-Serveur-Central\ZV-1-Experimentation-Serveur-Central.vcxproj" (default target) (3) ->
      C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets(518,5): error MSB8008: Specified platform toolset (v110) is not installed or invalid. Please make sure that a supported PlatformToolset value is selected. [C:\a\src\ZV-1-Experimentation\ZV-1-Experimentation-Serveur-Central\ZV-1-Experimentation-Serveur-Central.vcxproj]


    "C:\a\src\ZV-1-Experimentation\ZV-1-Experimentation.sln" (default target) (1) ->
    "C:\a\src\ZV-1-Experimentation\ZV-1-Experimentation-Serveur-Jeu\ZV-1-Experimentation-Serveur-Jeu.vcxproj" (default target) (4) ->
      C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets(518,5): error MSB8008: Specified platform toolset (v110) is not installed or invalid. Please make sure that a supported PlatformToolset value is selected. [C:\a\src\ZV-1-Experimentation\ZV-1-Experimentation-Serveur-Jeu\ZV-1-Experimentation-Serveur-Jeu.vcxproj]

        0 Warning(s)
        3 Error(s)

    Time Elapsed 00:00:07.97

    Here it's the solution configuration:

    (i can't put picture so i will write the config):

    Visual Studio 2012 Ultimate > Generate > Generate Management

    The projects for Debug configuration and Win32 Plateforme:

    ZV-1-Experimentation-Client

    ZV-1-Experimentation-Serveur-Central

    ZV-1-Experimentation-Serveur-Jeu

    Are all in Debug Configuration, Win32 Plateforme with checkbox to "Generate" checked


    I've try to modify the platform in the build configuration without succes. Because if i put "Any CPU" i've this output:

    Build started 8/8/2013 1:01:21 AM.
    Project "C:\a\src\ZV-1-Experimentation\ZV-1-Experimentation.sln" on node 1 (default targets).
    ValidateSolutionConfiguration:
      Building solution configuration "Debug|Any CPU".
    ValidateProjects:
      The project "ZV-1-Experimentation-Client" is not selected for building in solution configuration "Debug|Any CPU".
      The project "ZV-1-Experimentation-Serveur-Central" is not selected for building in solution configuration "Debug|Any CPU".
      The project "ZV-1-Experimentation-Serveur-Jeu" is not selected for building in solution configuration "Debug|Any CPU".
    Project "C:\a\src\ZV-1-Experimentation\ZV-1-Experimentation.sln" (1) is building "C:\a\src\UML\Architecture-V1\Architecture-V1.modelproj" (2) on node 1 (default targets).
    PrepareForBuild:
      Creating directory "obj\Debug\".
    Done Building Project "C:\a\src\UML\Architecture-V1\Architecture-V1.modelproj" (default targets).
    Done Building Project "C:\a\src\ZV-1-Experimentation\ZV-1-Experimentation.sln" (default targets).

    Build succeeded.
        0 Warning(s)
        0 Error(s)

    Time Elapsed 00:00:07.09

    It's logic because my projects are Win32 Project so if i put Any CPU they are unknow.

    I've try to leave a blank in platform in build configuration without success too.

    Can you tell me how use build system with team foundation service and C++ Win32 projects?

    Thank,

    Evorlde.

    Friday, August 09, 2013 5:19 PM

Answers

All replies

  • Hi Evorlde,

    Based on description, the issue is more related to MSBuild. You can have a try to set the environment variable "VisualStudioVersion" equal to "11.0" before calling MSBuild.exe :

    set VisualStudioVersion=11.0

    Thanks for your understanding.

    Best regards,


    Kimi Li
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Monday, August 12, 2013 7:59 AM
    Moderator
  • Hi,

    First, thank for your reply.

    Can you tell me how can i modified this value?

    I don't understand if it's a configuration in the solution or in the build. Where can i found this configuration?

    Sorry, i'm beginners with visual studio.

    Thank,

    Evorlde.

    • Proposed as answer by Mahmoud Samara Monday, September 02, 2013 9:04 AM
    Monday, August 12, 2013 11:17 AM
  • Hi Evorlde,

    Here is an instance for changing the environment variable:

    C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe
    .\myproject.vcxproj /p:VisualStudioVersion=11.0

    Best regards,


    Kimi Li
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Tuesday, August 13, 2013 9:58 AM
    Moderator
  • Hi Kimi Li,

    When i try to start C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe one consol appears 0.5 seconde and disappears.

    How can i use this .exe? Else how can i get around?

    .\myproject.vcxproj /p:VisualStudioVersion=11.0 is the exactly command or i must change myproject by my path? What is the /p: before VisualStudioVersion?

    Best Regardes,

    Evorlde.


    • Edited by Evorlde Tuesday, August 13, 2013 10:03 PM Forgot Questions?
    Tuesday, August 13, 2013 9:59 PM
  • Hi Evorlde,

    You need to change the instance to your own project path, and "/p:" stands for property.

    Additional, you can check whether the build configuration of your project are the same with configuration in build definition. Please build your project localy first.

    Best regards,


    Kimi Li
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Wednesday, August 14, 2013 9:24 AM
    Moderator
  • When i build my project localy i have this result:

    1>------ Régénération globale ignorée : Projet : Architecture-V1, Configuration : Debug Any CPU ------
    1>Projet non sélectionné dans le cadre d'une génération pour cette configuration de solution
    2>------ Début de la régénération globale : Projet : ZV-1-Experimentation-Client, Configuration : Debug Win32 ------
    3>------ Début de la régénération globale : Projet : ZV-1-Experimentation-Serveur-Central, Configuration : Debug Win32 ------
    4>------ Début de la régénération globale : Projet : ZV-1-Experimentation-Serveur-Jeu, Configuration : Debug Win32 ------
    ========== Régénération globale : 3 a réussi, 0 a échoué, 1 a été ignoré ==========

    Result:

    3 Success (my three projects), 0 failed, 1 unknow (architecture project so it's ok).
    You can see the projects are in debug mode and in Win32.

    Thank,

    Evorlde.

    Wednesday, August 14, 2013 9:39 AM
  • Hi Evorlde,

    Please let us know whether above ways works for you.

    Best regards,


    Kimi Li
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Wednesday, August 14, 2013 9:42 AM
    Moderator
  • The ways doesn't work because when i try to start C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe one consol appears 0.5 seconde and disappears. So i can't put the command line: \myproject.vcxproj /p:VisualStudioVersion=11.0

    Evorlde.


    • Edited by Evorlde Wednesday, August 14, 2013 9:47 AM
    Wednesday, August 14, 2013 9:45 AM
  • Hi Evorlde,

    You should input the complete command and then press Enter, not part of it.

    Best regards,


    Kimi Li
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Wednesday, August 14, 2013 9:48 AM
    Moderator
  • Ok. So i've start consol integrated in visual studio (in tools). Here it's the result:

    Do you think it's OK? What is the next step?

    Best Regards,

    Evorlde.

    Wednesday, August 14, 2013 10:00 AM
  • Hi Evorlde,

    For the content of build related, you can reference this article for using MSBuild.exe. And here is TFS build service: http://msdn.microsoft.com/en-us/library/ms244359(v=vs.100).aspx

    Best regards,


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Monday, September 02, 2013 9:03 AM
    Moderator
  • Hi,

    First, thx for your answers.

    I read documentation about MSBuild and i saw that MSBuild with Team Foundation Serrvice is currently in development. I saw on a forum that MSBuild do not support visual studio 2012 platforme for the test with TFService. So i must used visual studio 2010.

    To do this, i created a new configuration (like Debug or Release) named MSBuild and i've put in Project Configuration > general > platform: v100 in place of visual studio 2012 (V110). That works. MSBuild can works.

    With this configuration i can test my project with visual studio 2012 locally (with configuration Debug and Release that used Visual studio 2012 (V110)) and on TFService the project is tested with visual studio 2010 parameters.

    Best Regards,

    Evorlde.

    P.S: If you want more details do not hesitate.

    • Edited by Evorlde Wednesday, October 02, 2013 12:08 AM
    Wednesday, October 02, 2013 12:07 AM