Ask a questionAsk a question
 

Answerbuild never finished or doesn't ok

  • Thursday, June 28, 2007 6:17 PMalexandreb Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Hi everybody,

     

    I begin to produce a documentation about the using of team foundation.

    But i have met my first problem the automatisation of msi build.

     

    I follow the documentation produced here http://msdn2.microsoft.com/en-us/library/ms404859(VS.80).aspx

    And this one http://blogs.msdn.com/buckh/archive/2006/09/23/767329.aspx

     

    Code Snippet

    Done building project "HelloWorldTest.sln".

    Target AfterCompile:

    "C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv""c:\tfs\build\GCEG\HelloWorld\BuildType\..\Sources\beta\HelloWorldTest\HelloWorldTestInstaller\HelloWorldTestInstaller.vdproj /Build "Release|Any CPU"

    The filename, directory name, or volume label syntax is incorrect.

    c:\tfs\build\GCEG\HelloWorld\BuildType\TFSBuild.proj(157,2): error MSB3073: The command ""C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv""c:\tfs\build\GCEG\HelloWorld\BuildType\..\Sources\beta\HelloWorldTest\HelloWorldTestInstaller\HelloWorldTestInstaller.vdproj /Build "Release|Any CPU"" exited with code 255.

    Done building target "AfterCompile" in project "TFSBuild.proj" -- FAILED.

    Done building project "TFSBuild.proj" -- FAILED.

     

     

    I try with this command

     

    Code Snippet

    <Target Name="AfterCompile">

    <Exec Command="&quot;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv&quot; &quot;$(SolutionRoot)\beta\HelloWorldTest\HelloWorldTestInstaller\HelloWorldTestInstaller.vdproj /Build &quot;Release|Any CPU&quot;"/>

    </Target>


     

     

    You can note the space between the 2 quot. But the problem here have been the build never finished.

    I can see on the monitor on the team server a process msbuild but nothing happened.

     

    Somebody can help me to solve the problem. Or in other case can you send me a project and the file build associate.

    I can in that case verify my installation is complete and it's not a problem of component.

     

    For other steps, get sources and etc everything is fine.

     

    Thanks by advance.

Answers

  • Thursday, July 05, 2007 5:16 AMalexandreb Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    Finally I find the solution.

    In fact I should install visual studio 2005 on the build server.

    I didn't know that, I thought the setup of Team Build and Team Foundation is enough but not.

     

    Thanks for your help.

     

    Alexandre

All Replies

  • Thursday, June 28, 2007 7:08 PMPaul HackerMVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    <Exec Command="&quot;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv&quot; &quot;c:\tfs\build\GCEG\HelloWorld\BuildType\..\Sources\beta\HelloWorldTest\HelloWorldTestInstaller\HelloWorldTestInstaller.vdproj&quot; /Build &quot;Release|Any CPU&quot;"/>

     

    try this and see if it works   you can test the command in a command window and when it succeeds you can try it in the build script. Keeps you from having to run the build everytime.

     

    -paul

  • Friday, June 29, 2007 5:21 AMalexandreb Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Code Snippet

    Done building project "HelloWorldTest.sln".

    Target AfterCompile:

    "C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv" "c:\tfs\build\GCEG\HelloWorld\BuildType\..\Sources\beta\HelloWorldTest\HelloWorldTestInstaller\HelloWorldTestInstaller.vdproj" /Build "Release|Any CPU"

    Microsoft (R) Visual Studio Version 8.0.50727.42.

    Copyright (C) Microsoft Corp 1984-2005. All rights reserved.

    The operation could not be completed

    Invalid solution configuration

    Use:

    devenv [solutionfile | projectfile | anyfile.ext] [switches]

    The first argument for devenv is usually a solution file or project file.

    You can also use any other file as the first argument if you want to have the

    file open automatically in an editor. When you enter a project file, the IDE

    looks for an .sln file with the same base name as the project file in the

    parent directory for the project file. If no such .sln file exists, then the

    IDE looks for a single .sln file that references the project. If no such single

    .sln file exists, then the IDE creates an unsaved solution with a default .sln

    file name that has the same base name as the project file.

    Command line builds:

    devenv solutionfile.sln /build solutionconfig [ /project projectnameorfile [ /projectconfig name ] ]

    Available command line switches:

    /Build Builds the solution or project with the specified solution

    configuration. For example "Debug". If multiple platforms

    are possible, the configuration name must be enclosed in quotes

    and contain platform name. For example: "Debug|Win32".

    /Clean Deletes build outputs.

    /Command Starts the IDE and executes the command.

    /Deploy Builds and then deploys the specified build configuration.

    /Edit Opens the specified files in a running instance of this

    application. If there are no running instances, it will

    start a new instance with a simplified window layout.

    /LCID Sets the default language in the IDE for the UI.

    /Log Logs IDE activity to the specified file for troubleshooting.

    /NoVSIP Disables the VSIP developer's license key for VSIP testing.

    /Out Appends the build log to a specified file.

    /Project Specifies the project to build, clean, or deploy.

    Must be used with /Build, /Rebuild, /Clean, or /Deploy.

    /ProjectConfig Overrides the project configuration specified in the solution

    configuration. For example "Debug". If multiple platforms are

    possible, the configuration name must be enclosed in quotes

    and contain platform name. For example: "Debug|Win32".

    Must be used with /Project.

    /Rebuild Cleans and then builds the solution or project with the

    specified configuration.

    /ResetAddin Removes commands and command UI associated with the specified Add-in.

    /ResetSettings Restores the IDE's default settings, optionally resets to

    the specified VSSettings file.

    /ResetSkipPkgs Clears all SkipLoading tags added to VSPackages.

    /Run Compiles and runs the specified solution.

    /RunExit Compiles and runs the specified solution then closes the IDE.

    /SafeMode Launches the IDE in safe mode loading minimal windows.

    /Upgrade Upgrades the project or the solution and all projects in it.

    A backup of these files will be created as appropriate. Please

    see Help on 'Visual Studio Conversion Wizard' for more

    information on the backup process.

    Product-specific switches:

    To attach the debugger from the command line, use:

    VsJITDebugger.exe -p

    c:\tfs\build\GCEG\HelloWorld\BuildType\TFSBuild.proj(158,2): error MSB3073: The command ""C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv" "c:\tfs\build\GCEG\HelloWorld\BuildType\..\Sources\beta\HelloWorldTest\HelloWorldTestInstaller\HelloWorldTestInstaller.vdproj" /Build "Release|Any CPU"" exited with code 1.

    Done building target "AfterCompile" in project "TFSBuild.proj" -- FAILED.

     

    I try your command.

     

    my xml file contains this element :

    Code Snippet

    <ConfigurationToBuild Include="Release|Any CPU">

    <FlavorToBuild>Release</< FONT>FlavorToBuild>

    <PlatformToBuild>Any CPU</< FONT>PlatformToBuild>

    </< FONT>ConfigurationToBuild>

    <ConfigurationToBuild Include="Release">

    <FlavorToBuild>Release</< FONT>FlavorToBuild>

    <PlatformToBuild>Any CPU</< FONT>PlatformToBuild>

    </< FONT>ConfigurationToBuild>

     

    And this one :

    You can see a break but in the xml file the break doesn't present.

    Code Snippet

    <Target Name="AfterCompile">

    <!--<Exec Command="&quot;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv&quot;&quot;$(SolutionRoot)\beta\HelloWorldTest\HelloWorldTestInstaller\HelloWorldTestInstaller.vdproj /Build &quot;Release|Any CPU&quot;"/>-->

    <Exec Command="&quot;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv&quot; &quot;c:\tfs\build\GCEG\HelloWorld\BuildType\..\Sources\beta\HelloWorldTest\HelloWorldTestInstaller\HelloWorldTestInstaller.vdproj&quot; /Build &quot;Release|Any CPU&quot;"/>

    </Target>

     

    I try now to execute the command without tfs build but in a command line.

     

     

     

  • Friday, June 29, 2007 5:28 AMalexandreb Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    I try the command line.

    You can see the result below. Sad

     


     

       http://ddoc.free.fr/error.jpg

     

    I search on the forum and I see this post :

    http://forums.microsoft.com/msdn/showpost.aspx?postid=159417&siteid=1&sb=0&d=1&at=7&ft=11&tf=0&pageid=1

     

    I try the proposed solution using this command

    Code Snippet
    C:\tfs\build\GCEG\HelloWorld\Sources\beta\HelloWorldTest\HelloWorldTestInstaller
    >"C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv.exe" /Project "H
    elloWorldTestInstaller.vdproj" /build "Release" /out "file.out"

     

     

    The result is the same as error.jpg. What is wrong?

     Maybe something is wrong with the environnement on my teamfoundation server?

  • Friday, June 29, 2007 3:03 PMAaron HallbergMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    I just posted a blog post on this issue: http://blogs.msdn.com/aaronhallberg/archive/2007/06/29/building-from-the-command-line-with-devenv.aspx

     

    You'll probably want to do something like:

     

    > devenv HelloWorld.sln /Build Release /Project HelloWorldTestInstaller > file.out

     

    If HelloWorldTestInstaller.vdproj is the only project in its solution, you could also do:

     

    > devenv HelloWorldTestInstaller.vdproj /Build Release > file.out

     

    The /Project syntax only works if you are specifying a particular project (by name) within the solution passed into devenv, and is what's giving you the error.  You'll also probably want to use devenv or devenv.com rather than devenv.exe - see the blog post for details.

     

    -Aaron

  • Monday, July 02, 2007 6:57 AMalexandreb Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Hi,

    I try this proposed command :

    C:\tfs\build\GCEG\HelloWorld\Sources\beta\HelloWorldTest\HelloWorldTestInstaller
    >"C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv" HelloWorldTestInstaller.vdproj /build Release > file.out

     

    The result is the following :


    Code Snippet

    Microsoft (R) Visual Studio Version 8.0.50727.42.
    Copyright (C) Microsoft Corp 1984-2005. All rights reserved.

    The operation could not be completed
    Invalid solution configuration

    Use:
    devenv  [solutionfile | projectfile | anyfile.ext]  [switches]

    The first argument for devenv is usually a solution file or project file.
    You can also use any other file as the first argument if you want to have the
    file open automatically in an editor. When you enter a project file, the IDE
    looks for an .sln file with the same base name as the project file in the
    parent directory for the project file. If no such .sln file exists, then the
    IDE looks for a single .sln file that references the project. If no such single
    .sln file exists, then the IDE creates an unsaved solution with a default .sln
    file name that has the same base name as the project file.

    Command line builds:
    devenv solutionfile.sln /build solutionconfig [ /project projectnameorfile [ /projectconfig name ] ]
    Available command line switches:

    /Build  Builds the solution or project with the specified solution
      configuration. For example "Debug". If multiple platforms
      are possible, the configuration name must be enclosed in quotes
      and contain platform name. For example: "Debug|Win32".
    /Clean  Deletes build outputs.
    /Command Starts the IDE and executes the command.
    /Deploy  Builds and then deploys the specified build configuration.
    /Edit  Opens the specified files in a running instance of this
      application. If there are no running instances, it will
      start a new instance with a simplified window layout.
    /LCID  Sets the default language in the IDE for the UI.
    /Log  Logs IDE activity to the specified file for troubleshooting.
    /NoVSIP  Disables the VSIP developer's license key for VSIP testing.
    /Out  Appends the build log to a specified file.
    /Project Specifies the project to build, clean, or deploy.
      Must be used with /Build, /Rebuild, /Clean, or /Deploy.
    /ProjectConfig Overrides the project configuration specified in the solution
      configuration. For example "Debug". If multiple platforms are
      possible, the configuration name must be enclosed in quotes
      and contain platform name. For example: "Debug|Win32".
      Must be used with /Project.
    /Rebuild Cleans and then builds the solution or project with the
      specified configuration.
    /ResetAddin Removes commands and command UI associated with the specified Add-in.
    /ResetSettings Restores the IDE's default settings, optionally resets to
      the specified VSSettings file.
    /ResetSkipPkgs Clears all SkipLoading tags added to VSPackages.
    /Run  Compiles and runs the specified solution.
    /RunExit Compiles and runs the specified solution then closes the IDE.
    /SafeMode Launches the IDE in safe mode loading minimal windows.
    /Upgrade Upgrades the project or the solution and all projects in it.
      A backup of these files will be created as appropriate.  Please
      see Help on 'Visual Studio Conversion Wizard' for more
      information on the backup process.

    Product-specific switches:


    To attach the debugger from the command line, use:
     VsJITDebugger.exe -p

     

    Now I suppose my Vdproj isn't correct but why?

    In the msdn documentation

    To modify the vdproj-file to work with Team Foundation Build

    1. Right-click HelloWorldTestInstaller project in Solution Explorer and then click Properties. In the HelloWorldTestInstaller Property Pages dialog box click the Configuration Manager. Make sure that the Build box is selected for both HelloWorldTest and HelloWorldTestInstaller.

    2. Click Close to close the Configuration Manager dialog box and click OK to close the HelloWorldTestInstaller Property Pages dialog box.

    3. On the File menu, click Save All to save your changes.

    4. Locate the HelloWorldTestInstaller.vdproj file.

      The location in this walkthrough it is C:\DeploymentProjects\HelloWorldTest\HelloWorldTestInstaller. Your file path may be different depending on the location of your local workspace.

    5. Right-click HelloWorldTestInstaller.vdproj, point to Open With and then click Choose Program. In the Open With dialog box, select Notepad from the Programs pane, and then click OK to open HelloWorldTestInstaller in Notepad.

    6. Verify that all the file paths are listed as relative to the location of the HelloWorldTestInstaller.vdproj files. There should be no absolute paths listed.

    I don't change something.

     

    You can  see below the content of the vdproj file.

     

    Code Snippet
    "DeployProject"
    {
    "VSVersion" = "3:800"
    "ProjectType" = "8:{978C614F-708E-4E1A-B201-565925725DBA}"
    "IsWebType" = "8:FALSE"
    "ProjectName" = "8:HelloWorldTestInstaller"
    "LanguageId" = "3:1033"
    "CodePage" = "3:1252"
    "UILanguageId" = "3:1033"
    "SccProjectName" = "8:SAK"
    "SccLocalPath" = "8:SAK"
    "SccAuxPath" = "8:SAK"
    "SccProvider" = "8:SAK"
        "Hierarchy"
        {
            "Entry"
            {
            "MsmKey" = "8:_8BC055FD9887455F8F89B1AC953578B0"
            "OwnerKey" = "8:_UNDEFINED"
            "MsmSig" = "8:_UNDEFINED"
            }
            "Entry"
            {
            "MsmKey" = "8:_UNDEFINED"
            "OwnerKey" = "8:_8BC055FD9887455F8F89B1AC953578B0"
            "MsmSig" = "8:_UNDEFINED"
            }
        }
        "Configurations"
        {
            "Debug"
            {
            "DisplayName" = "8:Debug"
            "IsDebugOnly" = "11:TRUE"
            "IsReleaseOnly" = "11:FALSE"
            "OutputFilename" = "8:Debug\\HelloWorldTestInstaller.msi"
            "PackageFilesAs" = "3:2"
            "PackageFileSize" = "3:-2147483648"
            "CabType" = "3:1"
            "Compression" = "3:2"
            "SignOutput" = "11:FALSE"
            "CertificateFile" = "8:"
            "PrivateKeyFile" = "8:"
            "TimeStampServer" = "8:"
            "InstallerBootstrapper" = "3:2"
            }
            "Release"
            {
            "DisplayName" = "8:Release"
            "IsDebugOnly" = "11:FALSE"
            "IsReleaseOnly" = "11:TRUE"
            "OutputFilename" = "8:Release\\HelloWorldTestInstaller.msi"
            "PackageFilesAs" = "3:2"
            "PackageFileSize" = "3:-2147483648"
            "CabType" = "3:1"
            "Compression" = "3:2"
            "SignOutput" = "11:FALSE"
            "CertificateFile" = "8:"
            "PrivateKeyFile" = "8:"
            "TimeStampServer" = "8:"
            "InstallerBootstrapper" = "3:2"
            }
        }
        "Deployable"
        {
            "CustomAction"
            {
            }
            "DefaultFeature"
            {
            "Name" = "8:DefaultFeature"
            "Title" = "8:"
            "Description" = "8:"
            }
            "ExternalPersistence"
            {
                "LaunchCondition"
                {
                    "{A06ECF26-33A3-4562-8140-9B0E340D4F24}:_0BFD937FE5C24A80B32002B32FE0EAEA"
                    {
                    "Name" = "8:.NET Framework"
                    "Message" = "8:[VSDNETMSG]"
                    "Version" = "8:2.0.50727"
                    "AllowLaterVersions" = "11:FALSE"
                    "InstallUrl" = "8:http://go.microsoft.com/fwlink/?LinkId=9832"
                    }
                }
            }
            "File"
            {
            }
            "FileType"
            {
            }
            "Folder"
            {
                "{1525181F-901A-416C-8A58-119130FE478E}:_0F682D54CD814BF5BD3C02FD5F03D3AF"
                {
                "Name" = "8:#1916"
                "AlwaysCreate" = "11:FALSE"
                "Condition" = "8:"
                "Transitive" = "11:FALSE"
                "Property" = "8:DesktopFolder"
                    "Folders"
                    {
                    }
                }
                "{1525181F-901A-416C-8A58-119130FE478E}:_4EDB97E2679D4AFD8BFD1226AEADB834"
                {
                "Name" = "8:#1919"
                "AlwaysCreate" = "11:FALSE"
                "Condition" = "8:"
                "Transitive" = "11:FALSE"
                "Property" = "8:ProgramMenuFolder"
                    "Folders"
                    {
                    }
                }
                "{3C67513D-01DD-4637-8A68-80971EB9504F}:_7B70BD6761244AF89D1EA41206B5BCBB"
                {
                "DefaultLocation" = "8:[ProgramFilesFolder][Manufacturer]\\[ProductName]"
                "Name" = "8:#1925"
                "AlwaysCreate" = "11:FALSE"
                "Condition" = "8:"
                "Transitive" = "11:FALSE"
                "Property" = "8:TARGETDIR"
                    "Folders"
                    {
                    }
                }
            }
            "LaunchCondition"
            {
            }
            "Locator"
            {
            }
            "MsiBootstrapper"
            {
            "LangId" = "3:1033"
            }
            "Product"
            {
            "Name" = "8:Microsoft Visual Studio"
            "ProductName" = "8:HelloWorldTestInstaller"
            "ProductCode" = "8:{8053E342-6769-41EF-BF60-8C0B1BA6A238}"
            "PackageCode" = "8:{A1B1C331-18D5-4448-87E9-C2AB7E66BB27}"
            "UpgradeCode" = "8:{7954008C-D14D-4380-AE95-120F2DEE91F1}"
            "RestartWWWService" = "11:FALSE"
            "RemovePreviousVersions" = "11:FALSE"
            "DetectNewerInstalledVersion" = "11:TRUE"
            "InstallAllUsers" = "11:FALSE"
            "ProductVersion" = "8:1.0.0"
            "Manufacturer" = "8:Default Company Name"
            "ARPHELPTELEPHONE" = "8:"
            "ARPHELPLINK" = "8:"
            "Title" = "8:HelloWorldTestInstaller"
            "Subject" = "8:"
            "ARPCONTACT" = "8:Default Company Name"
            "Keywords" = "8:"
            "ARPCOMMENTS" = "8:"
            "ARPURLINFOABOUT" = "8:"
            "ARPPRODUCTICON" = "8:"
            "ARPIconIndex" = "3:0"
            "SearchPath" = "8:"
            "UseSystemSearchPath" = "11:TRUE"
            "TargetPlatform" = "3:0"
            "PreBuildEvent" = "8:"
            "PostBuildEvent" = "8:"
            "RunPostBuildEvent" = "3:0"
            }
            "Registry"
            {
                "HKLM"
                {
                    "Keys"
                    {
                        "{60EA8692-D2D5-43EB-80DC-7906BF13D6EF}:_C9F66CD091D34453B157FFAE48736F70"
                        {
                        "Name" = "8:Software"
                        "Condition" = "8:"
                        "AlwaysCreate" = "11:FALSE"
                        "DeleteAtUninstall" = "11:FALSE"
                        "Transitive" = "11:FALSE"
                            "Keys"
                            {
                                "{60EA8692-D2D5-43EB-80DC-7906BF13D6EF}:_5F8417991B604E12978D996103416840"
                                {
                                "Name" = "8:[Manufacturer]"
                                "Condition" = "8:"
                                "AlwaysCreate" = "11:FALSE"
                                "DeleteAtUninstall" = "11:FALSE"
                                "Transitive" = "11:FALSE"
                                    "Keys"
                                    {
                                    }
                                    "Values"
                                    {
                                    }
                                }
                            }
                            "Values"
                            {
                            }
                        }
                    }
                }
                "HKCU"
                {
                    "Keys"
                    {
                        "{60EA8692-D2D5-43EB-80DC-7906BF13D6EF}:_8DA5D13CD2DC4BBFBAD2D8A39B887C6A"
                        {
                        "Name" = "8:Software"
                        "Condition" = "8:"
                        "AlwaysCreate" = "11:FALSE"
                        "DeleteAtUninstall" = "11:FALSE"
                        "Transitive" = "11:FALSE"
                            "Keys"
                            {
                                "{60EA8692-D2D5-43EB-80DC-7906BF13D6EF}:_7C54E8C41D7E46D6AD22CC23EFE50531"
                                {
                                "Name" = "8:[Manufacturer]"
                                "Condition" = "8:"
                                "AlwaysCreate" = "11:FALSE"
                                "DeleteAtUninstall" = "11:FALSE"
                                "Transitive" = "11:FALSE"
                                    "Keys"
                                    {
                                    }
                                    "Values"
                                    {
                                    }
                                }
                            }
                            "Values"
                            {
                            }
                        }
                    }
                }
                "HKCR"
                {
                    "Keys"
                    {
                    }
                }
                "HKU"
                {
                    "Keys"
                    {
                    }
                }
                "HKPU"
                {
                    "Keys"
                    {
                    }
                }
            }
            "Sequences"
            {
            }
            "Shortcut"
            {
            }
            "UserInterface"
            {
                "{DF760B10-853B-4699-99F2-AFF7185B4A62}:_11C0FCC506174C649C3D6C939F676F01"
                {
                "Name" = "8:#1900"
                "Sequence" = "3:1"
                "Attributes" = "3:1"
                    "Dialogs"
                    {
                        "{688940B3-5CA9-4162-8DEE-2993FA9D8CBC}:_4941745E217A42FBAE3C6644DAE3014C"
                        {
                        "Sequence" = "3:200"
                        "DisplayName" = "8:Installation Folder"
                        "UseDynamicProperties" = "11:TRUE"
                        "IsDependency" = "11:FALSE"
                        "SourcePath" = "8:<VsdDialogDir>\\VsdFolderDlg.wid"
                            "Properties"
                            {
                                "BannerBitmap"
                                {
                                "Name" = "8:BannerBitmap"
                                "DisplayName" = "8:#1001"
                                "Description" = "8:#1101"
                                "Type" = "3:8"
                                "ContextData" = "8:Bitmap"
                                "Attributes" = "3:4"
                                "Setting" = "3:1"
                                "UsePlugInResources" = "11:TRUE"
                                }
                                "InstallAllUsersVisible"
                                {
                                "Name" = "8:InstallAllUsersVisible"
                                "DisplayName" = "8:#1059"
                                "Description" = "8:#1159"
                                "Type" = "3:5"
                                "ContextData" = "8:1;True=1;False=0"
                                "Attributes" = "3:0"
                                "Setting" = "3:0"
                                "Value" = "3:1"
                                "DefaultValue" = "3:1"
                                "UsePlugInResources" = "11:TRUE"
                                }
                            }
                        }
                        "{688940B3-5CA9-4162-8DEE-2993FA9D8CBC}:_659C379AEFCB4064AB1956C4550D145D"
                        {
                        "Sequence" = "3:100"
                        "DisplayName" = "8:Welcome"
                        "UseDynamicProperties" = "11:TRUE"
                        "IsDependency" = "11:FALSE"
                        "SourcePath" = "8:<VsdDialogDir>\\VsdWelcomeDlg.wid"
                            "Properties"
                            {
                                "BannerBitmap"
                                {
                                "Name" = "8:BannerBitmap"
                                "DisplayName" = "8:#1001"
                                "Description" = "8:#1101"
                                "Type" = "3:8"
                                "ContextData" = "8:Bitmap"
                                "Attributes" = "3:4"
                                "Setting" = "3:1"
                                "UsePlugInResources" = "11:TRUE"
                                }
                                "CopyrightWarning"
                                {
                                "Name" = "8:CopyrightWarning"
                                "DisplayName" = "8:#1002"
                                "Description" = "8:#1102"
                                "Type" = "3:3"
                                "ContextData" = "8:"
                                "Attributes" = "3:0"
                                "Setting" = "3:1"
                                "Value" = "8:#1202"
                                "DefaultValue" = "8:#1202"
                                "UsePlugInResources" = "11:TRUE"
                                }
                                "Welcome"
                                {
                                "Name" = "8:Welcome"
                                "DisplayName" = "8:#1003"
                                "Description" = "8:#1103"
                                "Type" = "3:3"
                                "ContextData" = "8:"
                                "Attributes" = "3:0"
                                "Setting" = "3:1"
                                "Value" = "8:#1203"
                                "DefaultValue" = "8:#1203"
                                "UsePlugInResources" = "11:TRUE"
                                }
                            }
                        }
                        "{688940B3-5CA9-4162-8DEE-2993FA9D8CBC}:_9094106C8BBA45C69E86C9A6D7B44C64"
                        {
                        "Sequence" = "3:300"
                        "DisplayName" = "8:Confirm Installation"
                        "UseDynamicProperties" = "11:TRUE"
                        "IsDependency" = "11:FALSE"
                        "SourcePath" = "8:<VsdDialogDir>\\VsdConfirmDlg.wid"
                            "Properties"
                            {
                                "BannerBitmap"
                                {
                                "Name" = "8:BannerBitmap"
                                "DisplayName" = "8:#1001"
                                "Description" = "8:#1101"
                                "Type" = "3:8"
                                "ContextData" = "8:Bitmap"
                                "Attributes" = "3:4"
                                "Setting" = "3:1"
                                "UsePlugInResources" = "11:TRUE"
                                }
                            }
                        }
                    }
                }
                "{DF760B10-853B-4699-99F2-AFF7185B4A62}:_18C62DCA5CF243999048E19CC24073B5"
                {
                "Name" = "8:#1902"
                "Sequence" = "3:1"
                "Attributes" = "3:3"
                    "Dialogs"
                    {
                        "{688940B3-5CA9-4162-8DEE-2993FA9D8CBC}:_74DC8AE806F8414889A007E37D06AE43"
                        {
                        "Sequence" = "3:100"
                        "DisplayName" = "8:Finished"
                        "UseDynamicProperties" = "11:TRUE"
                        "IsDependency" = "11:FALSE"
                        "SourcePath" = "8:<VsdDialogDir>\\VsdFinishedDlg.wid"
                            "Properties"
                            {
                                "BannerBitmap"
                                {
                                "Name" = "8:BannerBitmap"
                                "DisplayName" = "8:#1001"
                                "Description" = "8:#1101"
                                "Type" = "3:8"
                                "ContextData" = "8:Bitmap"
                                "Attributes" = "3:4"
                                "Setting" = "3:1"
                                "UsePlugInResources" = "11:TRUE"
                                }
                                "UpdateText"
                                {
                                "Name" = "8:UpdateText"
                                "DisplayName" = "8:#1058"
                                "Description" = "8:#1158"
                                "Type" = "3:15"
                                "ContextData" = "8:"
                                "Attributes" = "3:0"
                                "Setting" = "3:1"
                                "Value" = "8:#1258"
                                "DefaultValue" = "8:#1258"
                                "UsePlugInResources" = "11:TRUE"
                                }
                            }
                        }
                    }
                }
                "{2479F3F5-0309-486D-8047-8187E2CE5BA0}:_2344BB1168DA4F9CA3612E3244B586B0"
                {
                "UseDynamicProperties" = "11:FALSE"
                "IsDependency" = "11:FALSE"
                "SourcePath" = "8:<VsdDialogDir>\\VsdBasicDialogs.wim"
                }
                "{DF760B10-853B-4699-99F2-AFF7185B4A62}:_51E004C2170B4CCCA4D13762F4652507"
                {
                "Name" = "8:#1900"
                "Sequence" = "3:2"
                "Attributes" = "3:1"
                    "Dialogs"
                    {
                        "{688940B3-5CA9-4162-8DEE-2993FA9D8CBC}:_A7D4CF314BD8427BBE6896647C80C97E"
                        {
                        "Sequence" = "3:300"
                        "DisplayName" = "8:Confirm Installation"
                        "UseDynamicProperties" = "11:TRUE"
                        "IsDependency" = "11:FALSE"
                        "SourcePath" = "8:<VsdDialogDir>\\VsdAdminConfirmDlg.wid"
                            "Properties"
                            {
                                "BannerBitmap"
                                {
                                "Name" = "8:BannerBitmap"
                                "DisplayName" = "8:#1001"
                                "Description" = "8:#1101"
                                "Type" = "3:8"
                                "ContextData" = "8:Bitmap"
                                "Attributes" = "3:4"
                                "Setting" = "3:1"
                                "UsePlugInResources" = "11:TRUE"
                                }
                            }
                        }
                        "{688940B3-5CA9-4162-8DEE-2993FA9D8CBC}:_BA739C71DD344F21871CB9D3886CD554"
                        {
                        "Sequence" = "3:200"
                        "DisplayName" = "8:Installation Folder"
                        "UseDynamicProperties" = "11:TRUE"
                        "IsDependency" = "11:FALSE"
                        "SourcePath" = "8:<VsdDialogDir>\\VsdAdminFolderDlg.wid"
                            "Properties"
                            {
                                "BannerBitmap"
                                {
                                "Name" = "8:BannerBitmap"
                                "DisplayName" = "8:#1001"
                                "Description" = "8:#1101"
                                "Type" = "3:8"
                                "ContextData" = "8:Bitmap"
                                "Attributes" = "3:4"
                                "Setting" = "3:1"
                                "UsePlugInResources" = "11:TRUE"
                                }
                            }
                        }
                        "{688940B3-5CA9-4162-8DEE-2993FA9D8CBC}:_DC62875DBFBD44C7B33FF13F8CB89ABC"
                        {
                        "Sequence" = "3:100"
                        "DisplayName" = "8:Welcome"
                        "UseDynamicProperties" = "11:TRUE"
                        "IsDependency" = "11:FALSE"
                        "SourcePath" = "8:<VsdDialogDir>\\VsdAdminWelcomeDlg.wid"
                            "Properties"
                            {
                                "BannerBitmap"
                                {
                                "Name" = "8:BannerBitmap"
                                "DisplayName" = "8:#1001"
                                "Description" = "8:#1101"
                                "Type" = "3:8"
                                "ContextData" = "8:Bitmap"
                                "Attributes" = "3:4"
                                "Setting" = "3:1"
                                "UsePlugInResources" = "11:TRUE"
                                }
                                "CopyrightWarning"
                                {
                                "Name" = "8:CopyrightWarning"
                                "DisplayName" = "8:#1002"
                                "Description" = "8:#1102"
                                "Type" = "3:3"
                                "ContextData" = "8:"
                                "Attributes" = "3:0"
                                "Setting" = "3:1"
                                "Value" = "8:#1202"
                                "DefaultValue" = "8:#1202"
                                "UsePlugInResources" = "11:TRUE"
                                }
                                "Welcome"
                                {
                                "Name" = "8:Welcome"
                                "DisplayName" = "8:#1003"
                                "Description" = "8:#1103"
                                "Type" = "3:3"
                                "ContextData" = "8:"
                                "Attributes" = "3:0"
                                "Setting" = "3:1"
                                "Value" = "8:#1203"
                                "DefaultValue" = "8:#1203"
                                "UsePlugInResources" = "11:TRUE"
                                }
                            }
                        }
                    }
                }
                "{DF760B10-853B-4699-99F2-AFF7185B4A62}:_9AF5EC7408C343E7B86D60B5F62EEC29"
                {
                "Name" = "8:#1901"
                "Sequence" = "3:2"
                "Attributes" = "3:2"
                    "Dialogs"
                    {
                        "{688940B3-5CA9-4162-8DEE-2993FA9D8CBC}:_F36EFD0E38C94909A529F96E1A5CD4A8"
                        {
                        "Sequence" = "3:100"
                        "DisplayName" = "8:Progress"
                        "UseDynamicProperties" = "11:TRUE"
                        "IsDependency" = "11:FALSE"
                        "SourcePath" = "8:<VsdDialogDir>\\VsdAdminProgressDlg.wid"
                            "Properties"
                            {
                                "BannerBitmap"
                                {
                                "Name" = "8:BannerBitmap"
                                "DisplayName" = "8:#1001"
                                "Description" = "8:#1101"
                                "Type" = "3:8"
                                "ContextData" = "8:Bitmap"
                                "Attributes" = "3:4"
                                "Setting" = "3:1"
                                "UsePlugInResources" = "11:TRUE"
                                }
                                "ShowProgress"
                                {
                                "Name" = "8:ShowProgress"
                                "DisplayName" = "8:#1009"
                                "Description" = "8:#1109"
                                "Type" = "3:5"
                                "ContextData" = "8:1;True=1;False=0"
                                "Attributes" = "3:0"
                                "Setting" = "3:0"
                                "Value" = "3:1"
                                "DefaultValue" = "3:1"
                                "UsePlugInResources" = "11:TRUE"
                                }
                            }
                        }
                    }
                }
                "{DF760B10-853B-4699-99F2-AFF7185B4A62}:_B16AC715EB30441B9567A10A38C53926"
                {
                "Name" = "8:#1901"
                "Sequence" = "3:1"
                "Attributes" = "3:2"
                    "Dialogs"
                    {
                        "{688940B3-5CA9-4162-8DEE-2993FA9D8CBC}:_D51D48B86FDA4792BD09B87178FD659B"
                        {
                        "Sequence" = "3:100"
                        "DisplayName" = "8:Progress"
                        "UseDynamicProperties" = "11:TRUE"
                        "IsDependency" = "11:FALSE"
                        "SourcePath" = "8:<VsdDialogDir>\\VsdProgressDlg.wid"
                            "Properties"
                            {
                                "BannerBitmap"
                                {
                                "Name" = "8:BannerBitmap"
                                "DisplayName" = "8:#1001"
                                "Description" = "8:#1101"
                                "Type" = "3:8"
                                "ContextData" = "8:Bitmap"
                                "Attributes" = "3:4"
                                "Setting" = "3:1"
                                "UsePlugInResources" = "11:TRUE"
                                }
                                "ShowProgress"
                                {
                                "Name" = "8:ShowProgress"
                                "DisplayName" = "8:#1009"
                                "Description" = "8:#1109"
                                "Type" = "3:5"
                                "ContextData" = "8:1;True=1;False=0"
                                "Attributes" = "3:0"
                                "Setting" = "3:0"
                                "Value" = "3:1"
                                "DefaultValue" = "3:1"
                                "UsePlugInResources" = "11:TRUE"
                                }
                            }
                        }
                    }
                }
                "{DF760B10-853B-4699-99F2-AFF7185B4A62}:_B5673AD050E74C5589F281E988C3409A"
                {
                "Name" = "8:#1902"
                "Sequence" = "3:2"
                "Attributes" = "3:3"
                    "Dialogs"
                    {
                        "{688940B3-5CA9-4162-8DEE-2993FA9D8CBC}:_A76535B8582E4630A4423EF54AF11271"
                        {
                        "Sequence" = "3:100"
                        "DisplayName" = "8:Finished"
                        "UseDynamicProperties" = "11:TRUE"
                        "IsDependency" = "11:FALSE"
                        "SourcePath" = "8:<VsdDialogDir>\\VsdAdminFinishedDlg.wid"
                            "Properties"
                            {
                                "BannerBitmap"
                                {
                                "Name" = "8:BannerBitmap"
                                "DisplayName" = "8:#1001"
                                "Description" = "8:#1101"
                                "Type" = "3:8"
                                "ContextData" = "8:Bitmap"
                                "Attributes" = "3:4"
                                "Setting" = "3:1"
                                "UsePlugInResources" = "11:TRUE"
                                }
                            }
                        }
                    }
                }
                "{2479F3F5-0309-486D-8047-8187E2CE5BA0}:_F03F973A84994C42A3F4CFA478CA78A0"
                {
                "UseDynamicProperties" = "11:FALSE"
                "IsDependency" = "11:FALSE"
                "SourcePath" = "8:<VsdDialogDir>\\VsdUserInterface.wim"
                }
            }
            "MergeModule"
            {
            }
            "ProjectOutput"
            {
                "{5259A561-127C-4D43-A0A1-72F10C7B3BF8}:_8BC055FD9887455F8F89B1AC953578B0"
                {
                "SourcePath" = "8:..\\HelloWorldTest\\obj\\Debug\\HelloWorldTest.exe"
                "TargetName" = "8:"
                "Tag" = "8:"
                "Folder" = "8:_7B70BD6761244AF89D1EA41206B5BCBB"
                "Condition" = "8:"
                "Transitive" = "11:FALSE"
                "Vital" = "11:TRUE"
                "ReadOnly" = "11:FALSE"
                "Hidden" = "11:FALSE"
                "System" = "11:FALSE"
                "Permanent" = "11:FALSE"
                "SharedLegacy" = "11:FALSE"
                "PackageAs" = "3:1"
                "Register" = "3:1"
                "Exclude" = "11:FALSE"
                "IsDependency" = "11:FALSE"
                "IsolateTo" = "8:"
                "ProjectOutputGroupRegister" = "3:1"
                "OutputConfiguration" = "8:"
                "OutputGroupCanonicalName" = "8:Built"
                "OutputProjectGuid" = "8:{4E9B6EE3-3EF7-45CC-9127-B24EAFD48E53}"
                "ShowKeyOutput" = "11:TRUE"
                    "ExcludeFilters"
                    {
                    }
                }
            }
        }
    }

     

    I continu to search the good command. What do you think of this problem.

     

    Thanks by advance.

    Best regards,

    Alexandre

     

  • Monday, July 02, 2007 2:02 PMAaron HallbergMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    The error message says "Invalid solution configuration", so my guess is that your solution doesn't contain a "Release" configuration.  See my blog post here for a quick tutorial on solution and project configurations.

     

    Also - it looks like devenv is still defaulting to devenv.exe, so I would recommend explicitly using devenv.com to ensure that output is written to the console (and not to an error dialog).

     

    -Aaron

  • Monday, July 02, 2007 3:01 PMalexandreb Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Thanks for your answer. I think you try it on a simple computer not with tfs?

    I suppose in a vdproj I can't have the same tag xml if I compare with a buid file configuration.

    I notice when I access to the properties of the sln project I can't choose any cpu for the setupproject. I have blank selection.

    I can select for the windows project. Is-it normal?

     

    I search about your indications.

    Nevertheless my investigates didn't obtain something except below :

     

    If I try the command on my developper computer :

     

    Code Snippet

    C:\Users\alexandrebarault\Desktop\teamfoundation\gceg\beta\HelloWorldTest\HelloW
    orldTestInstaller>"C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv
    " HelloWorldTestInstaller.vdproj /build

    Microsoft (R) Visual Studio Version 8.0.50727.867.
    Copyright (C) Microsoft Corp 1984-2005. All rights reserved.
    ------ Build started: Project: HelloWorldTest, Configuration: Debug Any CPU ----
    --
    Build started 02/07/2007 16:46:44.
    Target CoreResGen:
        No resources are out of date with respect to their source files. Skipping re
    source generation.
    Target CopyFilesToOutputDirectory:
        HelloWorldTest -> C:\Users\alexandrebarault\Desktop\teamfoundation\gceg\beta
    \HelloWorldTest\HelloWorldTest\bin\Debug\HelloWorldTest.exe

    Build succeeded.

    Time Elapsed 00:00:00.08
    ------ Pre-build validation for project 'HelloWorldTestInstaller' completed ----
    --
    ------ Starting pre-build validation for project 'HelloWorldTestInstaller' -----
    -
    ------ Pre-build validation for project 'HelloWorldTestInstaller' completed ----
    --
    ------ Build started: Project: HelloWorldTestInstaller, Configuration: Debug ---
    ---
    Building file 'C:\Users\alexandrebarault\Desktop\teamfoundation\gceg\beta\HelloW
    orldTest\HelloWorldTestInstaller\Debug\HelloWorldTestInstaller.msi'...
    Packaging file 'HelloWorldTest.exe'...
    ========== Build: 2 succeeded or up-to-date, 0 failed, 0 skipped ==========

     

    I can see build 2 : succeeded.

    After, I create a new build type with reference to the same .sln.

    I launched this build, the build get sources and compile sources.

     

    After that, I try the same command on the team foundation server.

    C:\tfs\build\GCEG\helloWorld\Sources\beta\HelloWorldTest>"C:\Program Files\Micro
    soft Visual Studio 8\Common7\IDE\devenv" HelloWorldTest.sln /Build

    Microsoft (R) Visual Studio Version 8.0.50727.42.
    Copyright (C) Microsoft Corp 1984-2005. All rights reserved.

    The application for project 'C:\tfs\build\GCEG\helloWorld\Sources\beta\HelloWorl
    dTest\HelloWorldTest\HelloWorldTest.csproj' is not installed.

    Make sure the application for the project type (.csproj) is installed.
    The application for project 'C:\tfs\build\GCEG\helloWorld\Sources\beta\HelloWorl
    dTest\HelloWorldTestInstaller\HelloWorldTestInstaller.vdproj' is not installed.

    Make sure the application for the project type (.vdproj) is installed.==========
     Build: 0 succeeded or up-to-date, 0 failed, 0 skipped ==========

     

    I think this happened because the sln contains specifics file path. I think that's why I must enter a command line in the xml file of build tfs.

    I don't know how to solve it Sad I begin to ask myself if tfs is a good tools because I don't obtain anything.

      

  • Thursday, July 05, 2007 5:16 AMalexandreb Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    Finally I find the solution.

    In fact I should install visual studio 2005 on the build server.

    I didn't know that, I thought the setup of Team Build and Team Foundation is enough but not.

     

    Thanks for your help.

     

    Alexandre