Anyname Donotcare
Anyname Donotcare

Reputation: 11423

is there any way to reflect the changes in dll among the systems use it without many steps

Q:

I have a dll which used in many systems, when i make any modification in that dll ,i have to build it, copy this dll ,paste it in the bin folder of each web application module, and add a reference to the new one.

Is there any way to reduce the number of these steps? , i mean , is there any way to make any modifications to this dll visible in all systems with out all these steps.

EDIT:

the GAC will solve my problem if the applications at the same host ,but to be more clear , we use a source control to modify classes and more than one can modify this dll , what i want is: when i make any change to that dll , this doesn't force me to copy it through the bin folders of my applications.

thanks in advance.

Upvotes: 0

Views: 249

Answers (3)

Akram Shahda
Akram Shahda

Reputation: 14781

The global assembly cache stores assemblies specifically designated to be shared by several applications on the computer.

Refer to How to install an assembly into the Global Assembly Cache in Visual C#.

Edit:

Refer to Multiple Output paths for a C# Project file.

Upvotes: 1

Muhammad Akhtar
Muhammad Akhtar

Reputation: 52241

You can make this assembly as Shared Assembly, and install it in the GAC folder and reference this assembly in each application from GAC folder

Upvotes: 3

Deepesh
Deepesh

Reputation: 5614

Use shared assembly if possible or if you want to still continue with private assembly then create a batch file which will copy the dll to all the desired location if your multiple web application is running on the same server

steps to create shared assembly http://www.vkinfotek.com/assemblyhowto.html http://www.dnzone.com/go?698

Upvotes: 1

Related Questions