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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T02:31:20+00:00 2026-06-02T02:31:20+00:00

It says in AssemblyInfo.cs for C# projects that it’s possible to specify version information

  • 0

It says in AssemblyInfo.cs for C# projects that it’s possible to specify version information with *

// Version information for an assembly consists of the following four values:
//
//      Major Version
//      Minor Version 
//      Build Number
//      Revision
//
// You can specify all the values or you can default the Revision and Build Numbers 
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

I changed it to this:

[assembly: AssemblyVersion("1.0.*.*")]
[assembly: AssemblyFileVersion("1.0.*.*")]

and this is the error I get from the compiler:

error CS0647: Error emitting 'System.Reflection.AssemblyVersionAttribute' attribute -- 'The version specified '1.0.*.*' is invalid'
warning CS1607: Assembly generation -- The version '1.0.*.*' specified for the 'file version' is not in the normal 'major.minor.build.revision' format

How does (does it even?) it work?

  • 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-02T02:31:22+00:00Added an answer on June 2, 2026 at 2:31 am

    Syntax (see MSDN) for “automatic” build number can be:

    [assembly: AssemblyVersion("1.0.0.*")]
    

    or:

    [assembly: AssemblyVersion("1.0.*")]
    

    * means after this everything is automatic. You can’t have automatic build number and fixed revision number then this syntax isn’t correct:

    [assembly: AssemblyVersion("1.0.*.0")]
    

    For the AssemblyFileVersionAttribute you cannot use the * special character so you have to provide a full and valid version number. Please note that if you do not provide an AssemblyFileVersionAttribute then you’ll get the right FileVersionInfo automatically (with the same version of AssemblyVersionAttribute). You need to specify that attribute only if you need to set a different version.

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

Sidebar

Related Questions

I have in my assemblyinfo.cs class the code: [assembly: AssemblyVersion(1.0.*)] [assembly: AssemblyFileVersion(1.0.*)] Calling System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString()
Wikipedia says: A debug symbol is information that expresses which programming-language constructs generated a
says if i develop a Ruby on Rails application using Rails 2.3.2, will that
ScottGu says .NET MVC 2.0 has built in DataAnnotation support, I think that means
ScottGu says One nice feature of IIS7 on Windows Vista is that you can
MSDN says that ParallelEnumerable.GroupBy groups in parallel the elements of a sequence according to
It says here that The unbounded array is similar to a std::vector in that
w3schools says that exceptions can be strings, integers, booleans, or objects, but the example
Experience says that using WSDL-SOAP based webservice for internal consumption is an overkill. There
It says that my icon dimensions are 0x0 but when I check the file,

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.