Search code examples
.netasp.netcode-reuse

Storing class files in dll and using the dll for multiple websites in asp.net


I want to create a class file in VS2005 and be able to use it in other websites on my computer / production server. How do I create this dll and store it in a common place where I can reference it while developing and also on the production server ?


Solution

  • First add a class library project to your solution. Add this class into this library. And deploy this class to Global Assembly Cache (GAC). You can follow these steps to install your assembly to GAC.