Geeks With Blogs

News



Add to Google

Tim Hibbard CEO for EnGraph software

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.

 

Posted on Friday, June 1, 2007 2:15 PM .NET , Goldstar , TFS , ClickOnce | Back to top


Comments on this post: Publishing a ClickOnce app with TeamBuild

# re: Publishing a ClickOnce app with TeamBuild
Requesting Gravatar...
Nice. Thank you posting this...
Left by Greg on Jun 01, 2007 4:53 PM

# Publishing a ClickOnce app with Team Build
Requesting Gravatar...
one of the things i want to build, eventually, is a Team Foundation Server. And the other thing is ClickOnce
Left by Tiernans Comms Closet on Jun 03, 2007 8:31 AM

# re: Publishing a ClickOnce app with TeamBuild
Requesting Gravatar...
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.
Left by Jeff Bailey on Jan 29, 2008 6:35 PM

# re: Publishing a ClickOnce app with TeamBuild
Requesting Gravatar...
I assume this solution does not currently work with TFS 2009.
Left by Aaron Engel on Apr 23, 2009 11:48 AM

# re: Publishing a ClickOnce app with TeamBuild
Requesting Gravatar...
WE are your best choice.http://www.brandnew-shoes.com/ women's sandals to you!Welcome
Left by Welcome on Jun 11, 2010 3:08 AM

# re: Publishing a ClickOnce app with TeamBuild
Requesting Gravatar...
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.,,,,

Left by Colon Cleanse reviews on Dec 16, 2010 1:11 AM

# re: Publishing a ClickOnce app with TeamBuild
Requesting Gravatar...
Good to find a help here.. I will be very helpful for the developer's Who are looking for each code..
Left by Business Domains on Jan 13, 2011 10:57 AM

# re: Publishing a ClickOnce app with TeamBuild
Requesting Gravatar...
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??
Left by Mike on Mar 31, 2011 3:06 AM

# re: Publishing a ClickOnce app with TeamBuild
Requesting Gravatar...
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.
Left by hoist rings on Apr 11, 2011 12:09 PM

# re: Publishing a ClickOnce app with TeamBuild
Requesting Gravatar...
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!
Left by pick and pack on Apr 23, 2011 3:41 AM

# re: Publishing a ClickOnce app with TeamBuild
Requesting Gravatar...
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.
Left by Gary Corbett on Apr 25, 2011 12:17 PM

# re: Publishing a ClickOnce app with TeamBuild
Requesting Gravatar...
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!
Left by personal trainers orange county on May 16, 2011 11:42 AM

# re: Publishing a ClickOnce app with TeamBuild
Requesting Gravatar...
I just now wanted to let you know how much I appreciate every thing you’ve provided
Left by GF FERRE ceramic watches on May 25, 2011 10:44 PM

# re: Publishing a ClickOnce app with TeamBuild
Requesting Gravatar...
Hi,..
Chino hills bootcamps will make your more equipped to exercise at the gym and eat right at home.
regards,..
Left by chino hills boot camp on Jun 08, 2011 7:48 AM

# re: Publishing a ClickOnce app with TeamBuild
Requesting Gravatar...
I was looking for this. Thank you for sharing it.
Left by Five Finger Shoes Review on Jun 08, 2011 1:12 PM

# re: Publishing a ClickOnce app with TeamBuild
Requesting Gravatar...
Hello,..
Off course every doctor and nurse as well as clinical lab scientist is well trained for phlebotomy practice.
regards,..
Left by phlebotomy certification on Jun 13, 2011 12:45 PM

# re: Publishing a ClickOnce app with TeamBuild
Requesting Gravatar...
Wow, very amazing, thank you for sharing your talent!
Left by cheap baseball jerseys for sale on Jul 20, 2011 1:57 AM

# re: Publishing a ClickOnce app with TeamBuild
Requesting Gravatar...
The code is great.thank you.
Left by wholesale NBA jerseys on Jul 25, 2011 2:27 AM

# re: Publishing a ClickOnce app with TeamBuild
Requesting Gravatar...
The code is great.thank you.cffff54554882
Left by cheap nhl jerseys on Jul 28, 2011 9:56 PM

# re: Publishing a ClickOnce app with TeamBuild
Requesting Gravatar...
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
Left by DVD Ripper on Aug 10, 2011 3:39 AM

# re: Publishing a ClickOnce app with TeamBuild
Requesting Gravatar...
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
Left by MP4 Converter on Aug 10, 2011 3:44 AM

# re: Publishing a ClickOnce app with TeamBuild
Requesting Gravatar...
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.
Left by koozies personalized on Aug 11, 2011 2:43 AM

# re: Publishing a ClickOnce app with TeamBuild
Requesting Gravatar...
I like what you have said,it is really helpful to me,thanks!
Left by cheap nfl jersey on Aug 11, 2011 10:33 PM

# re: Publishing a ClickOnce app with TeamBuild
Requesting Gravatar...
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.
Left by DVD Converter on Aug 24, 2011 12:55 AM

# re: Publishing a ClickOnce app with TeamBuild
Requesting Gravatar...
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.
Left by DVD Ripper on Aug 24, 2011 12:58 AM

# Cheap NFL Jerseys
Requesting Gravatar...
Are some code that dizziness
Left by Authentic NFL Jerseys on Aug 29, 2011 9:33 PM

# re: Publishing a ClickOnce app with TeamBuild
Requesting Gravatar...
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.
Left by chino hills boot camp on Aug 30, 2011 5:13 AM

# re: Publishing a ClickOnce app with TeamBuild
Requesting Gravatar...
Its really helpful site to visit and share helpful stuff,.
Keep stay here and keep sharing,.
Left by hotmailcorreo on Sep 15, 2011 3:07 AM

# re: Publishing a ClickOnce app with TeamBuild
Requesting Gravatar...
Very informative post. Looking more to something similar to this.
Left by womans snow boots on Sep 16, 2011 10:51 PM

# Cheap football jerseys
Requesting Gravatar...

Thanks for sharing
Left by Cheap football jerseys on Sep 20, 2011 9:29 PM

# GHD Hair Straighteners
Requesting Gravatar...
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.
Left by NFL jerseys Outlet on Sep 27, 2011 2:01 AM

# re: Publishing a ClickOnce app with TeamBuild
Requesting Gravatar...
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.
Left by ugg boots on sale on Oct 07, 2011 1:21 AM

# cheap christian louboutin
Requesting Gravatar...
Are looking for this information, which is very helpful, thank you !!!
Left by Christian Louboutin Let Me Tell on Oct 13, 2011 1:32 AM

# re: Publishing a ClickOnce app with TeamBuild
Requesting Gravatar...
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
Left by lincoln square chicago real esta on Oct 14, 2011 12:43 AM

# re: Publishing a ClickOnce app with TeamBuild
Requesting Gravatar...
Thanks for sharing these links and i hope that you will be available for further help too.
Left by Franchise. on Oct 18, 2011 11:20 PM

# re: Publishing a ClickOnce app with TeamBuild
Requesting Gravatar...
Thank you for sharing,You know, good article always make people feel happy
Left by cheap nhl jerseys on Dec 12, 2011 8:13 PM

# re: Publishing a ClickOnce app with TeamBuild
Requesting Gravatar...
Thanks for offering information. www.LikeJerseys.org .
Recently I found a cheaper jerseys website,here have many NFL,NHL,MLB ,NBA and custom jerseys.All jerseys name and number are stitched and with cheap price. Welcome to www.LikeJerseys.org .
Left by Betty on Feb 17, 2012 3:09 AM

# re: quality jerseys
Requesting Gravatar...
Welcome to visit our website: http://www.jerseyshome.net/. We offer jerseys 、headphones、caps and so on . and Denver Broncos 18 Peyton Manning jerseys are available. More than 10 items, we offer free shipping. And we will also give you a 10% discount when you pay by western union.
Left by jerseyshome on Mar 30, 2012 4:02 AM

# re:high quality with competitive price
Requesting Gravatar...
Popular jerseys wholesale
welcome to: http://www.jerseysshow.me/
Offer cheap, high quality popular jerseys (Nike NFL,NBA Colleage Basketball…), all names & numbers are sewn on. if you order 10 or more items, free shipping . Pay by western union ,you will get a 10% discount.
Looking forward to your visiting.
Left by jerseysshow on Mar 12, 2013 10:36 PM

# re: Publishing a ClickOnce app with TeamBuild
Requesting Gravatar...
the google maps API talk about adding driving directions to their API. The idea was really useful and it has explained me in every means. . I have book marked your page for further updates. Keep up the good work. Regards
Left by windows 8 chip on Apr 29, 2013 6:36 AM

Your comment:
 (will show your gravatar)


Copyright © Tim Hibbard | Powered by: GeeksWithBlogs.net