Community Forums
Page 2 of 3 FirstFirst 123 LastLast
Results 6 to 10 of 12

Thread: TFS and Automated Build

  1. #6
    Join Date
    Jan 2009
    Location
    Johannesburg, South Africa
    Posts
    38
    Thank you for your input......I'm going to set up a very small project and see how far I get. If all goes well I'll implement it on all my builds.

    Regards

    Neil

  2. #7
    Join Date
    Oct 2011
    Posts
    29

    You don't need to create a visual studio solution

    Quote Originally Posted by NeilHayes View Post
    Thank you for your input......I'm going to set up a very small project and see how far I get. If all goes well I'll implement it on all my builds.

    Regards

    Neil
    You can just call your isdev commands from a batch.

    Something like this goes in your .isproj file (the one you select as project to build in TFS)

    <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
    <Target Name="YourProjectName">
    <Exec Command="call $(MSBuildProjectDirectory)\YourBatchFile.bat" />
    </Target>
    </Project>

    Something like this goes in your batch file:
    ISCmdBld.exe -p "%InstallersProjectsPath%\YourInstallshielProject.ism" -r "YourRelease" -c COMP -a "YourProductConfiguration"

    You can also just call a vbscript from the batch and handle all the installshield part in a vbscript file, or whatever you like

    Indeed, you can use the build service just like a windows scheduling service to schedule whatever you want, you don't need an installshield project or visual studio solution, just use the Exec Command

    You can create a Build definition for each "Build Target" and schedule them on demand or apply the same batch approach using tfsbuild start to trigger whatever group of Build definitions (or targets) you want automatically
    Last edited by operaza; 03-11-2013 at 05:02 PM.

  3. #8
    Join Date
    Jul 2003
    Location
    Austin, TX
    Posts
    4,436
    Are you seriously proposing using MSBuild to call a batch file to call a VBScript to call an EXE when all of this can be done natively in MSBuild?
    Christopher Painter
    ISWIX, LLC.
    Visit iswix.com for contact information

  4. #9
    Join Date
    Oct 2011
    Posts
    29

    any script over msbuild any day

    Quote Originally Posted by Christopher Painter View Post
    Are you seriously proposing using MSBuild to call a batch file to call a VBScript to call an EXE when all of this can be done natively in MSBuild?
    Yes using msbuild to call a script, it gives me much more flexibility specially when dealing with automation tasks. And all the major build tasks are separated in build definitions that anybody can trigger from teamviewer, or group in a batch using tfsbuild and add to the tree.
    All I need to know about msbuild is "Exec Command=" that's it

    This is what a build script would look like in a simple batch file that anybody can modify or use as reference to create their own, they can also go to team viewer and trigger anything from there.

    rem increments the build number
    tfsbuild start http://domain:8080/tfs/defaultcollection TeamProjectInstallerProjects IncrementBuildNumber

    rem visual studio solutions builds
    start tfsbuild start http://domain:8080/tfs/defaultcollection TeamProjectVisualStudio VSProject1
    start tfsbuild start http://domain:8080/tfs/defaultcollection TeamProjectVisualStudio VSProject2
    start tfsbuild start http://domain:8080/tfs/defaultcollection TeamProjectVisualStudio VSProject3
    start tfsbuild start http://domain:8080/tfs/defaultcollection TeamProjectVisualStudio VSProject4
    start tfsbuild start http://domain:8080/tfs/defaultcollection TeamProjectVisualStudio VSProject5
    start tfsbuild start http://domain:8080/tfs/defaultcollection TeamProjectVisualStudio VSProject6
    start tfsbuild start http://domain:8080/tfs/defaultcollection TeamProjectVisualStudio VSProject7
    tfsbuild start http://domain:8080/tfs/defaultcollection TeamProjectVisualStudio VSProject8

    rem Installers builds
    start tfsbuild start http://domain:8080/tfs/defaultcollection TeamProjectInstallerProjects CopyTFSBuilds
    start tfsbuild start http://domain:8080/tfs/defaultcollection TeamProjectInstallerProjects Installers_WindowsApps_Build_All
    tfsbuild start http://domain:8080/tfs/defaultcollection TeamProjectInstallerProjects Installers_WebApps_Build_All
    tfsbuild start http://domain:8080/tfs/defaultcollection TeamProjectInstallerProjects Installers_WindowsServices_Build_All
    tfsbuild start http://domain:8080/tfs/defaultcollection TeamProjectInstallerProjects Installers_SQLDBMigrations_Build_All
    tfsbuild start http://domain:8080/tfs/defaultcollection TeamProjectInstallerProjects Installers_ReportsDeployments_Build_All
    Last edited by operaza; 03-12-2013 at 01:56 PM.

  5. #10
    Join Date
    Jul 2003
    Location
    Austin, TX
    Posts
    4,436
    Speechless.
    Christopher Painter
    ISWIX, LLC.
    Visit iswix.com for contact information

Page 2 of 3 FirstFirst 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •