Why each time I compile The Version Number Changes.

  • Thread starter Thread starter yonatnl
  • Start date Start date
Y

yonatnl

Why do my Assebmly changes it's version each time I compile
altough I didn't modified the Code at all.

- - -
Salution X Contains ClassLab Y and WebProhect Z
Z has a referance To Y.
Y always change it's Version number when compiled altough nothing was
modified .

why ?
It was working correctly untill 2 days' ago ...
 
Have you checked your AssemblyVersion attribute (usually in
AssemblyInfo.cs)? If it has any asterisks in it, then this (time based) is
the expected behaviour on a build. Or am I missing the point of the
question?

Have you perhaps added a SNK recently? Without a strong name, "Fusion" will
accept any version, where-as with a strong name it will insist on the one it
was expecting (or a policy to forward it).

Marc
 
Can Me Give me an Explanation what to do?
and How to change the strong name
 
I changed all of the the Asseblies to :
[assembly: AssemblyVersion("2.0.1")]
but it behaves the same.


The problem again:
when compile I get :

----- some of the projects give

Preparing resources...
Updating references...
Performing main compilation...

The project is up-to-date.
Building satellite assemblies...

----- some of the projects give

Preparing resources...
Updating references...
Performing main compilation...

Build complete -- 0 errors, 0 warnings
Building satellite assemblies...
 
I'm not quite sure how that output demonstrates anything relating to the
version number... if the real problem is just the referenced projects being
re-built, I seem to recall a parallel thread on that... just checked and I
think this was from yourself...

But yes, *if* (for whatever reason) the referenced project is rebuilt, and
*if* it has an asterisk in the AssemblyVersion, then it will get a new
version.

For "why it rebuilt" I can only reference the other thread.

Marc
 
I think you are right (about the thread) but I just dont see it...
Can you explain again about The Thread.. in more details
 

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

Back
Top