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

  • Home
  • SEARCH
  • 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 8225541
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T15:27:05+00:00 2026-06-07T15:27:05+00:00

Is there any way to use a custom format for assembly versions, when building

  • 0

Is there any way to use a custom format for assembly versions, when building them with MSBuild?

For example, we tried to use a version like “0.16.10r2.10717” But we got this error:

error emitting 'system.reflection.assemblyversionattribute' -- The version specified '0.16.10r2.10717' is invalid.

I searched around the web, but seems no one asked for a solution of this. Is it possible?

We use Microsoft Visual Studio 2010, and FinalBuilder 7 for building our project.

  • 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-07T15:27:06+00:00Added an answer on June 7, 2026 at 3:27 pm

    AssemblyVersion and AssemblyFileVersion both must be composed of up to four integers, period-separated, each of which is no larger than 65534 (UInt16.MaxValue-1). Any of the following are valid (C# syntax):

    [assembly: AssemblyVersion("1.2.3.4")]
    
    // Let the compiler generate the build and/or revision numbers
    [assembly: AssemblyVersion("1.2.3.*")]
    [assembly: AssemblyVersion("1.2.*")]
    

    There is another attribute, AssemblyInformationalVersion, that accepts a string as the version; it can be used when you want to use more complicated strings (especially when including a commit ID from a DVCS).

    // Use complex version number
    [assembly: AssemblyInformationalVersion("0.16.10r2.10717")]
    
    // Include Git commit ID
    [assembly: AssemblyInformationalVersion("1.2b1-g39d1c0f")]
    

    Briefly, the difference between these attributes is:

    • AssemblyVersion: This is used as the CLR version of the assembly. When the assembly has a strong-name, this is the version that is validated against.

    • AssemblyFileVersion: This is the Win32 file version resource, and is displayed in the assembly’s properties in Windows Explorer.

    • AssemblyInformationalVersion: This is accessible at runtime via the Application.ProductVersion property. It is also used in the Application.UserAppDataDirectory path.

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

Sidebar

Related Questions

Is there any way to use a for-loop in MATLAB with a custom step?
is there any way to use custom border by css or can make by
Is there any way to use custom sql with NHibernate? I want to use
Hello is there any way to use a custom php code as component, in
Is there any way to make TypeDescriptor.GetConverter.ConvertFromString convert to DateTime using a custom format
Is there any way to use a custom html helper with the <%: %>
Is there any way to use Google's API to retrieve a user's current zipcode
Is there any way to use Zend_Filter_Encrypt with large files, without rising memory limit
Is there any way to use global int constants in Objective C that work
Is there any way to use server controls in ASP.NET MVC? Specifically I need

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.