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 8957419
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T14:59:10+00:00 2026-06-15T14:59:10+00:00

We current do manual builds/publish from Visual Studio 2010 and we require users to

  • 0

We current do manual builds/publish from Visual Studio 2010 and we require users to always be running the latest version (check before startup and minimum required version set). I am working on scripting our deployment out and have no issues using msbuild to build/publish. However, I have not found a way to auto-increment the minimum required version when msbuild runs. What are my options to automatically bump this when publishing via msbuild?

I did see quite a few articles on this topic here, but they seemed to be specific to VS and not MSBuild.

  • 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-06-15T14:59:11+00:00Added an answer on June 15, 2026 at 2:59 pm

    Updating the MinimumRequiredVersion Automatically

    Introduction to Project Editor

    1. In Solution Explorer, right click on your project and select unload project.

      Screenshot of Unloading

    2. Once the project has become unavailable, right click again and select edit <project_name>.<lang> proj.

      Screenshot of Opening Editor

    Introduction to MSBuild

    1. Properties use key/value pairs to extract information

      • Using the property name as an alias, you can use $(OutputPath) to obtain the value for the element <OutputPath>.\bin</OutputPath>
    2. We’ll use the following properties generated for a ClickOnce deployment

      <MinimumRequiredVersion>1.0.0.6</MinimumRequiredVersion>
      <ApplicationRevision>7</ApplicationRevision>
      <ApplicationVersion>1.0.0.%2a</ApplicationVersion>
      
    3. MSBuild Tasks can be specified in the project (*.proj) file and invoked during a build event.

      • FormatVersion is a built-in task for .NET 4.0 and later that formats the ApplicationVersion and ApplicationRevision into a single version number.

    Implementation

    1. Copy and Paste the following code into the opened project file as a child element to the root <Project> element.

      <Target Name="AutoSetMinimumRequiredVersion" BeforeTargets="GenerateDeploymentManifest">
        <FormatVersion Version="$(ApplicationVersion)" Revision="$(ApplicationRevision)">
          <Output PropertyName="MinimumRequiredVersion" TaskParameter="OutputVersion"  />
        </FormatVersion>
        <FormatVersion Version="$(ApplicationVersion)" Revision="$(ApplicationRevision)">
          <Output PropertyName="_DeploymentBuiltMinimumRequiredVersion" TaskParameter="OutputVersion"  />
        </FormatVersion>
      </Target>
      

      This code will take ApplicationVersion and ApplicationRevision as parameters in the Format Version task and will save the output by overwriting the MinimumRequiredVersion with the full publish version.

    2. Save and reload your project. Every ClickOnce deployment will now automatically update to the most recently published version.


    Many thanks to Kev for their answer which I have basically rehashed here with a little bit of added clarification for any beginners. Here’s a blog post I made about the issue that expands even more on my answer here.

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

Sidebar

Related Questions

From the current version (0.98) of the Moose::Manual::MooseX are the lines: We have high
From makecontext() manual... Due to limitations in the current pthread implementation, makecontext should not
When a software is developed,various types of testing is done - unit,integration,functional,manual.In my current
Current version of Twiiter has a tab bar as shown below. When I select
Current tinyMCE version (3.5.2). Hi, I am working on a custom plugin which adds
Current situation: Ubuntu 8.04 server edition (live server) Postgresql 8.3.7 (from standard repositories) Postgis
So, we're using continuous integration in our current Team Foundation Server 2010 setup, and
This Code is a code I built from the algorithm design manual book but
Installed PEAR and followed the directions on http://www.phpunit.de/manual/current/en/installation.html : pear config-set auto_discover 1 pear
I am trying to configure the Inspector component as per instructions here: http://manual.qooxdoo.org/current/pages/application/inspector_selenium.html#pages-application-inspector-selenium-using-the-qooxdoo-inspector-to-write-selenium-tests I

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.