M
Mark
Hello
I've created a DLL (Common.dll) that needs to be used by multiple .NET
Windows applications. So I thought the best solution would be to deploy the
DLL into the GAC after associating it with a Strong Name.
But I've noticed a problem.
If I build a Windows Application that references the Common.DLL it all works
fine.
But if I then rebuild the Common.DLL and copy the new Common.DLL into the
directory where the Windows Application EXE was built (overwriting the
previous Common.DLL) the Windows Application EXE no longer works.
I think this is due to the version number changing in the strong named
Common.DLL. Initially the AssemblyVersion attribute was set to 1.0.*, so I
tried setting it to 1.0.0.0 and building a new Common.DLL. Then I rebuilt the
Windows Application EXE against version 1.0.0.0 of Common.DLL. But if I built
version 1.0.0.1 of the Common.DLL and copied it into the same directory as
the Windows Application EXE, the Windows Application EXE no longer works.
This is a big problem for me.
If I need to make a change to the Common.dll and rebuild it, I don't want to
also rebuild all the applications that reference the Common.DLL. I just want
to be able to make changes to the Common.DLL, deploy it to the GAC and all
the applications that reference the Common.DLL, use the new Common.DLL.
Is this possible?
Thank you for your help
Mark
I've created a DLL (Common.dll) that needs to be used by multiple .NET
Windows applications. So I thought the best solution would be to deploy the
DLL into the GAC after associating it with a Strong Name.
But I've noticed a problem.
If I build a Windows Application that references the Common.DLL it all works
fine.
But if I then rebuild the Common.DLL and copy the new Common.DLL into the
directory where the Windows Application EXE was built (overwriting the
previous Common.DLL) the Windows Application EXE no longer works.
I think this is due to the version number changing in the strong named
Common.DLL. Initially the AssemblyVersion attribute was set to 1.0.*, so I
tried setting it to 1.0.0.0 and building a new Common.DLL. Then I rebuilt the
Windows Application EXE against version 1.0.0.0 of Common.DLL. But if I built
version 1.0.0.1 of the Common.DLL and copied it into the same directory as
the Windows Application EXE, the Windows Application EXE no longer works.
This is a big problem for me.
If I need to make a change to the Common.dll and rebuild it, I don't want to
also rebuild all the applications that reference the Common.DLL. I just want
to be able to make changes to the Common.DLL, deploy it to the GAC and all
the applications that reference the Common.DLL, use the new Common.DLL.
Is this possible?
Thank you for your help
Mark