B
BeerBoy
Consider this :
I have 4 projects :
Project 'Level2' is a simple class library and dependent on nothing else
Project 'Level1A' and 'Level1B' are both dependent on 'Level2'
Project 'App' is dependent on 'Level1A' and 'Level1B' but doesn't use Level2
directly
Now all worked well. Then I found a bug in 'Level2' which I fixed and
recompiled.After I recompiled 'App' everything worked fine again.
Later on I discovered a bug in 'Level1A' which I fixed and recompiled.
On recompiling 'App' I get a compilation error saying it cannot write Level2
to the 'run' folder because of a versioning problem i.e. Level1A and Level1B
have different versions in their bin.
Why is this a problem ? I know on disk I have 3 copies of Level2.dll (one in
Level2 bin and 1 in each bin of Level1A and Level1B) but the Major and Minor
numbers are the same so it shouldn't matter. Infact, in the 'App' if I set
the 'local copy' to false in the references of 'Level1A' and 'Level1B' and
then manually copy 'Level1A.dll', 'Leve1B.dll' and 'Level2.dll' (latest
verion) into the bin then it all works fine ???
I guess I could use the GAC but this is a development server so build
numbers as changing all the time and I don't really want to put every build
into the GAC.
Nor do I want to reference a load of other projects just to get the
references to work correctly !
How does everyone else handle this ?
Thanks in advance
Jim
I have 4 projects :
Project 'Level2' is a simple class library and dependent on nothing else
Project 'Level1A' and 'Level1B' are both dependent on 'Level2'
Project 'App' is dependent on 'Level1A' and 'Level1B' but doesn't use Level2
directly
Now all worked well. Then I found a bug in 'Level2' which I fixed and
recompiled.After I recompiled 'App' everything worked fine again.
Later on I discovered a bug in 'Level1A' which I fixed and recompiled.
On recompiling 'App' I get a compilation error saying it cannot write Level2
to the 'run' folder because of a versioning problem i.e. Level1A and Level1B
have different versions in their bin.
Why is this a problem ? I know on disk I have 3 copies of Level2.dll (one in
Level2 bin and 1 in each bin of Level1A and Level1B) but the Major and Minor
numbers are the same so it shouldn't matter. Infact, in the 'App' if I set
the 'local copy' to false in the references of 'Level1A' and 'Level1B' and
then manually copy 'Level1A.dll', 'Leve1B.dll' and 'Level2.dll' (latest
verion) into the bin then it all works fine ???
I guess I could use the GAC but this is a development server so build
numbers as changing all the time and I don't really want to put every build
into the GAC.
Nor do I want to reference a load of other projects just to get the
references to work correctly !
How does everyone else handle this ?
Thanks in advance
Jim