Fixing Invalid Version Number problems with the assemblyinfotask

Source: Internet
Author: User
Ref: http://blogs.msdn.com/msbuild/archive/2007/01/03/fixing-invalid-version-number-problems-with-the-assemblyinfotask.aspx

The arrival of 2007 bought a flurry of e-mails to the msbuild team from people having trouble with the assemblyinfotask. The symptom is simple to describe-The builds start to fail with the following error:

Error emitting 'System. reflection. assemblyversionattribute 'attribute -- 'The version specified' 1. 0.70102.1 'is invalid

The fix to get builds going again is to change the date format used to generate the build number to something other than the default "yymmdd ". the date formats are in microsoft.versionnumber.tar get, located in % Program Files % \ msbuild \ Microsoft \ assemblyinfotask, and there are two of them (one for file version and one for assembly version ). you can use any format you want. within visual Studio we're re now using 01mmdd.

Note that you may have to go in and hand-edit your assemblyinfo. * files to change their version number back to a default starting point of 1.0.0.0 to get your builds going again.

Questions or problems after doing the above? Contact us using the e-mail link at the top of this page.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.