Reputation: 267
How do I go about updating the assembly in the GAC after I change the code in my plugin?
I have a Class Library which I created in VS2010 following this tutorial: http://msdn.microsoft.com/en-us/library/gg695782.aspx and it all works fine. But now I want to make a change to the code, how do I rebuild the project so the change is updated/reflected?
I tried building the project again, and adding to the GAC but now if I run the plugin I still have the same behavior from the first upload/install...
How do I update the GAC assembly after changing the code? I just dragged the new .dll in and also tried using the cmd prompt for VS2010 but still no change is reflected...
Upvotes: 4
Views: 1588
Reputation: 7921
Dragging the new DLL into the GAC folders will not update the code in the GAC, you need to register the new DLL. You can use gacutil
to manipulate the GAC. MSDN
gacutil -i YourDLL.dll
Adding the -i
flag tells the gacutil
command that you want to install a new dll to the GAC.
You could also create a Visual Studio Installer project that will run as an installer and install your new code into the GAC. MSDN
Upvotes: 1