Problems with TFS Build Integration - Advanced Installer Community
ndickmeis
Posts: 2
Joined: Tue Dec 02, 2014 3:57 pm

Problems with TFS Build Integration

Hi,
we're currently evaluating Advanced Installer for our purposes.
We managed to create two setup projects and the next step for us would be the TFS integration so we can create the setup files by running a TFS Build Definition.

We already installed AI on the Team Foundation Server and can build the AI projects within the IDE installed on our TFS build server. The AI projects compile on the local developer machine as well as on the build server.

When we configure and run a build definition to compile the solution containing the AI projects, the build aborts with an error message:
AdvInstExtTasks.Targets (14): The AssignProjectConfiguration-Task couldn't be found.
I tried to fix this error (I have absolutely no idea, why it occurs in the first place) by placing the Microsoft.Build.Tasks.v12.0.dll next to the AdvInstExt.dll and adding the following line to the Targets file:

Code: Select all

<UsingTask TaskName="AssignProjectConfiguration" AssemblyFile="Microsoft.Build.Tasks.v12.0.dll"/>
Unfortunately, this leaves me with a different error, giving me absolutely no useful information about the cause of the error: MSBuild reports a build error "1" in AdvInstExtTasks.Targets (71)

Any idea what's causing this? Did we make mistakes configuring the TFS build server?
Any useful thoughts?

Kind regards
Norbert
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Problems with TFS Build Integration

Hello Norbert and welcome to Advanced Installer forums,

This may happen when the "MSBuild Platform" parameter of your build definition is set to "Auto". Since our Advanced Installer Visual Studio extension is compatible only with the 32-bit version of MSBuild 4.0, the "MSBuild Platform" parameter should be explicitly set to "X86".

So, can you please set the "MSBuild Platform" parameter, of the build definition -> "Process" section, to "X86" and test again the build scenario?

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ndickmeis
Posts: 2
Joined: Tue Dec 02, 2014 3:57 pm

Re: Problems with TFS Build Integration

Thank you for your reply,
Changing the build process to x86 actually worked (although I'm quite sure that this was the initial setting when I started testing).

Unfortunately we hit another problem: We provide a multi-tier solution where the server application is responsible for delivering the update to the clients. Thus we integrated the client setup into the server setup by setting the output path of the Client Setup to a designated build-folder within the setup project structure. The server setup refers to this folder and synchronizes its content with the main feature. This works fine within the local AI IDE, but on the team foundation server, the output of the client setup is redirected to the global output folder of the tfs build. So the build folder within the client setup project structure doesn't exist and the server setup wont compile.

Any ideas how to solve this?

Kind regards
Norber
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Problems with TFS Build Integration

Hello Norber,

Regarding your client and server setup projects, you can proceed like this:
1. create an Everyone accessible shared network path
2. configure your build definition to copy the build output to a drop folder (the UNC path of the above shared network folder)
3. synchronize the server setup with the above shared network path

Please take a look on "Select a staging location and set up a drop folder" article which should be useful.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”