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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:55:26+00:00 2026-05-31T05:55:26+00:00

How can I specifically set up Visual Studio 2010 so I can automatically change

  • 0

How can I specifically set up Visual Studio 2010 so I can automatically change the assembly version of my .NET projects without having to manually change them, during compilation (or building/rebuilding of a project/solution). Please be specific for how a typical company/organization would do this if they had a web application and multiple class library projects in the same solution. Let’s assume we’re using Tortoise SVN for version control and we want our project version to reflect the SVN version(s) automatically.

  • 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-31T05:55:27+00:00Added an answer on May 31, 2026 at 5:55 am

    I’m not aware of any way to do this via Visual Studio.

    Does you organisation have a build script?
    I maintain a buildscript in Powershell, and from here the problem is quite solvable.

    Here’s some example snippets:

    To extract the subversion revision number:

    $revisionNumber = (svn info $RepositoryPath -r HEAD | select-string '^Revision: (\d+)$').Matches[0].Groups[1].Value
    

    Then, to assign this version number to every assembly in the solution:

    $targetAssemblyVersion="1.0.3.{0}" -f $revisionNumber
    $assemblyDeclaration = "[assembly: AssemblyFileVersion(`"{0}`")]" -f $targetAssemblyVersion;
    get-childitem -recurse -filter "AssemblyInfo.cs" |
       % {
              $sb = new-object System.Text.StringBuilder;
              $_ | get-content |
               % {
                     $replacedString = ($_ -replace '^\[assembly: AssemblyFileVersion\("[\d\.]+"\)\]',$assemblyDeclaration);
                      $dummy = ($sb.AppendLine($replacedString));
                };
              $sb.ToString() | out-file $_.FullName;
        };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In every Visual Studio.NET version you can set keyboard shortcuts using menu Tools ->
Visual Studio 2010 comes with a huge set of tools, most of which aren't
After converting to Visual Studio 2010 with ReSharper5 some of my unit tests started
Can anyone sugggest good references/guides for getting started with nunit and visual studio 2008.
Is there any way that I can set up Apache to run locally, specifically
In .NET (C#, specifically), how can I stop navigation? Situation: User has clicked a
In Visual Studio, VSTS has the functionality to select a set of work items
Specifically how can I: Show a button which will let the user browse through
Reading the bottom of the documentation, specifically: You can still retrieve properties of deleted
Can someone post an example of as3 code (specifically event listener included) that would

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.