Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 954275
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T00:11:22+00:00 2026-05-16T00:11:22+00:00

I need to implement auto-increment for each nightly builds. For this, i need to

  • 0

I need to implement auto-increment for each nightly builds.

For this, i need to read existing version, increment only the build number and save the incremented build number to assemblyinfo.cs files as well as some custom xml files having the following syntax.

<?xml version="1.0" encoding="utf-8"?>
<MyProduct>
  <Version>v.3.0.13</Version>
  <Build>3.0.13</Build>
</MyProduct>

I am having trouble to read existing version and build number separately. I could increment build number using the Sdc.Sum Task from Microsoft.Sdc task but there is a problem while trying to read the assembly version.

Kindly help

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T00:11:22+00:00Added an answer on May 16, 2026 at 12:11 am

    Got the solution,
    First i checked out the required .xml and assemblyinfo. files

    the problem was solved using Microsft.SDc.tasks and using the Version task and a proper XPath query, the version was easily read.

    using Math.Sum from Microsoft.Sdc or Math.Add from MsBuild Community tasks increment can be performed on any of the single variable that may represent, lets say build number…

    using File.Replace task i was able to change the build number for each nightly build and used a regular expression to match and change version not only in the xml files but also in the assemblyinfo.* files.

    Finally i checked in the changes

    All the above tasks were performed in the Afterget Target.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I need to implement an auto-logout feature for WordPress. With JavaScript this seems
I need to set a auto increment for a field in my table. This
To implement github like fork/pull request function in my project, the auto-merge feature need
i need to implement the email signature with image.As of now we only support
I need to implement a thread pool in Java (java.util.concurrent) whose number of threads
Any one know how to implement auto send message using MFMessageComposer....i mean No need
I need to implement auto-capitalization inside of a Telerik RadEditor control on an ASPX
I need to implement the jquery dialog into an existing backend. Here's my code
My requirement is to implement auto complete feature in my rails application. I need
I am trying to implement this jQuery auto complete function but the problem is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.