c# - CS1607: Assembly generation -- The version '1.4.0.85725' specified for the 'file version' is not in the normal 'major.minor.build.revision' format -
(please excuse me if terms mixed here - java developer, new .net , c#. please add/correct tags on question if need be.)
i using msbuild script build project. 1 of tasks write assembly info:
<target name="updateassemblyinfo"> <message text="updating assemblies file version $(assemblyversion) ($(assemblyfileversion))" importance="high"/> <assemblyinfo codelanguage="cs" outputfile="sharedassemblyinfo.cs" assemblyversion="$(assemblyversion)" assemblyfileversion="$(assemblyfileversion)" assemblyproduct="svn revision $(build_number)"/> </target>
this converts sharedassemblyinfo.cs
this:
[assembly: system.reflection.assemblyversion("0.0.0")]
to this:
//------------------------------------------------------------------------------ // <auto-generated> // code generated tool. // runtime version:4.0.30319.18063 // // changes file may cause incorrect behavior , lost if // code regenerated. // </auto-generated> //------------------------------------------------------------------------------ [assembly: system.reflection.assemblyversion("1.4.0")] [assembly: system.reflection.assemblyfileversion("1.4.0.85725")] [assembly: system.reflection.assemblyproduct("svn revision 85725")]
so far good. except see following message in build log of teamcity:
csc warning cs1607: assembly generation -- version '1.4.0.85725' specified 'file version' not in normal 'major.minor.build.revision' format
why getting warning, when format of version appears follow format specified in warning message?
the reason why getting error because revision number greater 65534.
Comments
Post a Comment