Tim Hibbard

CEO for EnGraph software
posts - 626, comments - 1547, trackbacks - 459

My Links

News



Add to Google

Twitter












Tag Cloud

Article Categories

Archives

Post Categories

Image Galleries

EnGraph Blogs

Links

Other

Roll

Publishing a ClickOnce app with TeamBuild

After much frustration, I've finally configured our TeamBuild proj file to publish our ClickOnce app, and increase the version number (kinda an important step).  The Vertigo blog talks about using SolutionToPublish, but that doesn't work for all situations.  Specifically, when your solution contains projects that reference other projects. 

So I started playing with the MSBuild Community Tasks Project, and came up with the following Xml for my proj file:

This tells the .proj to use the community project:

<Import Project="$(MSBuildExtensionsPath)\MSBuildCommunityTasks\
   MSBuild.Community.Tasks.Targets"/>

This defines the version numbers:

<PropertyGroup>
    <Major>4</Major>
    <Minor>0</Minor>
    <Build>0</Build>
    <Revision>0</Revision>
</PropertyGroup>

 

This sets the Revision to the last Changeset in our TFS server, and sets the Build to a formatted date:

<Target Name="Version">
    <TfsVersion LocalPath="$(SolutionRoot)">
      <Output TaskParameter="Changeset" PropertyName="Revision"/>
    </TfsVersion>
    <Time Format="MMdd">
      <Output TaskParameter="FormattedTime" PropertyName="Build" />
    </Time>
</Target>

 

This tells TeamBuild to Publish this after the solution is compiled and after the Version code has been ran.  It publishes the ClickOnce project to the location PublishDir with the version set in ApplicationVersion:

<Target Name="AfterCompile" DependsOnTargets="Version">
    <MSBuild Projects="$(SolutionRoot)\dev\...\ParaPlan.csproj"
    Properties="PublishDir=\\server\drop\;ApplicationVersion=$(Major).$(Minor).$(Build).$(Revision)" 
    Targets="Publish" />
</Target>

 

The entire .proj file is here.

 

  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Print | posted on Friday, June 01, 2007 2:15 PM | Filed Under [ .NET Goldstar TFS ClickOnce ]

Feedback

Gravatar

# re: Publishing a ClickOnce app with TeamBuild

Nice. Thank you posting this...
6/1/2007 4:53 PM | Greg
Gravatar

# Publishing a ClickOnce app with Team Build

one of the things i want to build, eventually, is a Team Foundation Server. And the other thing is ClickOnce
6/3/2007 8:31 AM | Tiernans Comms Closet
Gravatar

# re: Publishing a ClickOnce app with TeamBuild

The problem with this is that the Target="Publish" causes your project to be compiled again before being published. You need to use PublishOnly to avoid the re-compiling. However, then you end up trying to publish from the csproj relative directory ... which isn't where the team server dropped your binaries.
1/29/2008 6:35 PM | Jeff Bailey
Gravatar

# re: Publishing a ClickOnce app with TeamBuild

I assume this solution does not currently work with TFS 2009.
4/23/2009 11:48 AM | Aaron Engel
Gravatar

# re: Publishing a ClickOnce app with TeamBuild

WE are your best choice.http://www.brandnew-shoes.com/ women's sandals to you!Welcome
6/11/2010 3:08 AM | Welcome
Gravatar

# re: Publishing a ClickOnce app with TeamBuild

hi,...
A healthy colon is essential to good health, which makes colon cleansing, parasite cleansing, and detoxifying a must. Everything we eat ends up in our bowels as toxins. As these toxins build up, we end up with various diseases, such as being constipation and overweight.
best regards
john.,,,,

12/16/2010 1:11 AM | Colon Cleanse reviews
Gravatar

# re: Publishing a ClickOnce app with TeamBuild

Good to find a help here.. I will be very helpful for the developer's Who are looking for each code..
1/13/2011 10:57 AM | Business Domains
Gravatar

# re: Publishing a ClickOnce app with TeamBuild

Hello,

Really nice post, i am just curious if there is any way to increment the revision part of the Application version in nightly build everyday??
3/31/2011 3:06 AM | Mike
Gravatar

# re: Publishing a ClickOnce app with TeamBuild

This version of ClickOnce is restricted to one executable program per ClickOnce application. Each deployment manifest can point to only one app manifest and each app manifest can have only one <entryPoint> which points to the EXE.
4/11/2011 12:09 PM | hoist rings
Gravatar

# re: Publishing a ClickOnce app with TeamBuild

This was a little too much for me (we aren't signing our manifests, for example), but it'll definitely get you most of the way there. The only thing missing is copying the files to your webserver once they are all packaged, but if you know anything about MSBuild, you ought to be fine there. Also, be sure and use "MSBuild" when doing searches for this kind of thing... "Team Build" will generally only get you marketing material. Good luck!
4/23/2011 3:41 AM | pick and pack
Gravatar

# re: Publishing a ClickOnce app with TeamBuild

I think that ClickOnce would deploy any files you tell it to, including other executables but it wouldn't create the start menu links for them and it wouldn't do update checking for them. I have been creating seperate builds/deployments for each application even though they share a lot of framework assemblies.
4/25/2011 12:17 PM | Gary Corbett
Gravatar

# re: Publishing a ClickOnce app with TeamBuild

Guys,..
Hello and welcome to Personal Training. My name is - I'm an independently certified Personal Fitness Trainer, Boot Camp Instructor, weight loss specialist, and the owner of Training, the ONLY personal fitness program in the Orange County area that Guarantees Your Success!
5/16/2011 11:42 AM | personal trainers orange county
Gravatar

# re: Publishing a ClickOnce app with TeamBuild

I just now wanted to let you know how much I appreciate every thing you’ve provided
5/25/2011 10:44 PM | GF FERRE ceramic watches
Gravatar

# re: Publishing a ClickOnce app with TeamBuild

Hi,..
Chino hills bootcamps will make your more equipped to exercise at the gym and eat right at home.
regards,..
6/8/2011 7:48 AM | chino hills boot camp
Gravatar

# re: Publishing a ClickOnce app with TeamBuild

I was looking for this. Thank you for sharing it.
6/8/2011 1:12 PM | Five Finger Shoes Review
Gravatar

# re: Publishing a ClickOnce app with TeamBuild

Hello,..
Off course every doctor and nurse as well as clinical lab scientist is well trained for phlebotomy practice.
regards,..
6/13/2011 12:45 PM | phlebotomy certification
Gravatar

# re: Publishing a ClickOnce app with TeamBuild

Wow, very amazing, thank you for sharing your talent!
7/20/2011 1:57 AM | cheap baseball jerseys for sale
Gravatar

# re: Publishing a ClickOnce app with TeamBuild

The code is great.thank you.
7/25/2011 2:27 AM | wholesale NBA jerseys
Gravatar

# re: Publishing a ClickOnce app with TeamBuild

The code is great.thank you.cffff54554882
7/28/2011 9:56 PM | cheap nhl jerseys
Gravatar

# re: Publishing a ClickOnce app with TeamBuild

I honestly believe there is a skill to writing articles that only very few posses and honestly you got it. The combining of demonstrative and upper-class content is by all odds super rare with the astronomic amount of blogs on the cyberspace.
MP4 Converter

DVD Ripper
8/10/2011 3:39 AM | DVD Ripper
Gravatar

# re: Publishing a ClickOnce app with TeamBuild

I am hoping the same best work from you in the future as well. In fact your creative writing abilities has inspired me.Really the blogging is spreading its wings rapidly. Your write up is fine example of it
MP4 Converter

DVD Ripper
8/10/2011 3:44 AM | MP4 Converter
Gravatar

# re: Publishing a ClickOnce app with TeamBuild

Personalized koozies are a wonderful way to promote your company, team or group. At CustomInk, our printers will allow you to personalize a variety of merchandise - tee shirts, bags, mugs, cups and hats.
8/11/2011 2:43 AM | koozies personalized
Gravatar

# re: Publishing a ClickOnce app with TeamBuild

I like what you have said,it is really helpful to me,thanks!
8/11/2011 10:33 PM | cheap nfl jersey
Gravatar

# re: Publishing a ClickOnce app with TeamBuild

Nice to be visiting your blog again, Well this article that i've been waited for so long.Thanks, great share. I don’t suppose I have read anything like this before. So nice to find somebody with some original thoughts on this subject I like all of them very much. I can feel that you paid a lot of attention to those articles, since all of them make sense and are very useful. Thanks a lot for sharing.
8/24/2011 12:55 AM | DVD Converter
Gravatar

# re: Publishing a ClickOnce app with TeamBuild

what's up guys cheers for the fantastic information on this blog. I am going to pass it on to my colleagues for a read.
8/24/2011 12:58 AM | DVD Ripper
Gravatar

# Cheap NFL Jerseys

Are some code that dizziness
8/29/2011 9:33 PM | Authentic NFL Jerseys
Gravatar

# re: Publishing a ClickOnce app with TeamBuild

With Chino Hills Boot Camps personal trainer and mentor at fitness boot camps you will learn the correct way and reduce the incidence of injury from incorrect methods of exercise.
8/30/2011 5:13 AM | chino hills boot camp
Gravatar

# re: Publishing a ClickOnce app with TeamBuild

Its really helpful site to visit and share helpful stuff,.
Keep stay here and keep sharing,.
9/15/2011 3:07 AM | hotmailcorreo
Gravatar

# re: Publishing a ClickOnce app with TeamBuild

Very informative post. Looking more to something similar to this.
9/16/2011 10:51 PM | womans snow boots
Gravatar

#  Cheap football jerseys


Thanks for sharing
9/20/2011 9:29 PM | Cheap football jerseys
Gravatar

# GHD Hair Straighteners

I have been surfing on-line more than three hours as of late, yet I never found any fascinating article like yours
I’ve desired to write something similar to this on my webpage and this has given me a concept. Cheers.
9/27/2011 2:01 AM | NFL jerseys Outlet
Gravatar

# http://www.nflraidersjerseys.com

The article is very good, I like it very much.Here I learned a lot, then I will pay more attention to you.
10/5/2011 2:20 AM | Raiders Jersey
Gravatar

# re: Publishing a ClickOnce app with TeamBuild

We are pleased to inform you that we have just marketed our newly-developed. You will be interested to hear that we have just marketed our new product.We are pleased to get in touch with you for the supply of.
10/7/2011 1:21 AM | ugg boots on sale
Gravatar

# cheap christian louboutin

Are looking for this information, which is very helpful, thank you !!!
10/13/2011 1:32 AM | Christian Louboutin Let Me Tell
Gravatar

# re: Publishing a ClickOnce app with TeamBuild

I read this article and i like it because this is important problem and many people face now a days. In this blog important information is contain . Thanks for sharing information.
lincoln square chicago real estate
10/14/2011 12:43 AM | lincoln square chicago real esta
Gravatar

# re: Publishing a ClickOnce app with TeamBuild

Thanks for sharing these links and i hope that you will be available for further help too.
10/18/2011 11:20 PM | Franchise.
Gravatar

# re: Publishing a ClickOnce app with TeamBuild

Thank you for sharing,You know, good article always make people feel happy
12/12/2011 8:13 PM | cheap nhl jerseys
Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification:
 
 

Powered by: