I have a helper class which is often used in number of webparts. The file contains useful methods. Everytime when I create a new webpart in Visual Studio, I need to import this file into the project.

Is there other methods to keep the file as global and just reference it from webparts?

  • Are you talking about Visual Studio Project in C#?
    – Gwny
    Aug 3, 2015 at 8:59
  • @Gwny, yes I am Aug 3, 2015 at 10:04

1 Answer 1


you can create a separate Project eg. "Common" where you include those classes. You can reference that assembly than from your other Projects. Of course, you have to ensure that this wsp is installed along your other wsps (which use that dll)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.