AssemblyVersion not accepting 1.0.*.1

D

D. Appel

Hi all,

According to the documentation of the AssemblyVersionAttribute, it should
accept version strings like '1.0.*.0'
However, when I use that format I get an error:
(29): Error emitting System.Reflection.AssemblyVersionAttribute'
attribute -- 'The version specified '1.0.*.0' is invalid'

The line in my AssemblyInfo.cs reads:
[assembly: AssemblyVersion("1.0.*.1")]

I would like to be able to specify Major,Minor and Revision but use the
automatic Build number... am I doing something wrong, is this a bug, or is
the documentation incorrect?

TIA
Dick Appel
 
D

D. Appel

-- Whoops, ofcourse the version number in the error messages and the version
number in the AssemblyInfo.cs do match ... ;-)
 
B

Bret Mulvey

The documentation I have says you can use an asterisk for Build if you
specify Major and Minor, but it doesn't say you can specify Revision if you
use an asterisk for Build. It shows the following examples of valid version
numbers:

1
1.1
1.1.*
1.1.1
1.1.1.*
1.1.1.1

Which documentation are you looking at?

D. Appel said:
-- Whoops, ofcourse the version number in the error messages and the version
number in the AssemblyInfo.cs do match ... ;-)

D. Appel said:
Hi all,

According to the documentation of the AssemblyVersionAttribute, it should
accept version strings like '1.0.*.0'
However, when I use that format I get an error:
(29): Error emitting System.Reflection.AssemblyVersionAttribute'
attribute -- 'The version specified '1.0.*.0' is invalid'

The line in my AssemblyInfo.cs reads:
[assembly: AssemblyVersion("1.0.*.1")]

I would like to be able to specify Major,Minor and Revision but use the
automatic Build number... am I doing something wrong, is this a bug, or is
the documentation incorrect?

TIA
Dick Appel
 
D

D. Appel

I've seen that list as well... but the documentation I'm referring to is the
'About the AssemblyVersionAttribute class' documentation, which states:

"A version number such as [assembly:AssemblyVersion("1.2.*.6")] specifies 1
as the major version, 2 as the minor version, accepts the default build
number, and specifies 6 as the revision number."

That's what gave me the idea that this should be possible... but I'm really
hoping that documentation is correct, because I would like it to work like
that...



Bret Mulvey said:
The documentation I have says you can use an asterisk for Build if you
specify Major and Minor, but it doesn't say you can specify Revision if you
use an asterisk for Build. It shows the following examples of valid version
numbers:

1
1.1
1.1.*
1.1.1
1.1.1.*
1.1.1.1

Which documentation are you looking at?

D. Appel said:
-- Whoops, ofcourse the version number in the error messages and the version
number in the AssemblyInfo.cs do match ... ;-)

D. Appel said:
Hi all,

According to the documentation of the AssemblyVersionAttribute, it should
accept version strings like '1.0.*.0'
However, when I use that format I get an error:
(29): Error emitting System.Reflection.AssemblyVersionAttribute'
attribute -- 'The version specified '1.0.*.0' is invalid'

The line in my AssemblyInfo.cs reads:
[assembly: AssemblyVersion("1.0.*.1")]

I would like to be able to specify Major,Minor and Revision but use the
automatic Build number... am I doing something wrong, is this a bug,
or
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top