B
Bob Altman
All,
I have a couple of strong name signed library assemblies stored on a local disk
(e.g. C:\My assemblies\). Assembly A calls into assembly B. These two
assemblies are built by the same solution. Assembly A has a "project reference"
to assembly B.
I have an application that calls into both assemblies. When I added the
assembly references in this application, I pointed it at the assemblies in C:\My
assemblies\.
So, the point here is that my app calls A, which calls B, and my app directly
calls B, so B is both directly referenced by my app and indirectly referenced
through A.
Now, if assembly B in C:\My assemblies is at version 1.0.0.1, but I have version
1.0.0.0 of assembly B installed in the GAC, then I get the following warnings
when I try to compile my app:
Consider app.config remapping of assembly "A, ...."
from version "1.0.0.0" [C:\WINDOWS\assembly\GAC_MSIL\...]
to version "1.0.0.1" [C:\My assemblies\...]
to solve conflict and get rid of warning.
warning MSB3247: Found conflicts between different versions
of the same dependent assembly.
So, what's the deal here? I have verified that assembly A (in C:\My assemblies)
was most recently built with version 1.0.0.1 of assembly B. Why is VS looking
in the GAC when I told it to find my assembly in "C:\My assemblies"? In
general, if I have an older version of an assembly installed in the GAC, can I
not compile with the current version of the assembly without this warning?
TIA - Bob
I have a couple of strong name signed library assemblies stored on a local disk
(e.g. C:\My assemblies\). Assembly A calls into assembly B. These two
assemblies are built by the same solution. Assembly A has a "project reference"
to assembly B.
I have an application that calls into both assemblies. When I added the
assembly references in this application, I pointed it at the assemblies in C:\My
assemblies\.
So, the point here is that my app calls A, which calls B, and my app directly
calls B, so B is both directly referenced by my app and indirectly referenced
through A.
Now, if assembly B in C:\My assemblies is at version 1.0.0.1, but I have version
1.0.0.0 of assembly B installed in the GAC, then I get the following warnings
when I try to compile my app:
Consider app.config remapping of assembly "A, ...."
from version "1.0.0.0" [C:\WINDOWS\assembly\GAC_MSIL\...]
to version "1.0.0.1" [C:\My assemblies\...]
to solve conflict and get rid of warning.
warning MSB3247: Found conflicts between different versions
of the same dependent assembly.
So, what's the deal here? I have verified that assembly A (in C:\My assemblies)
was most recently built with version 1.0.0.1 of assembly B. Why is VS looking
in the GAC when I told it to find my assembly in "C:\My assemblies"? In
general, if I have an older version of an assembly installed in the GAC, can I
not compile with the current version of the assembly without this warning?
TIA - Bob