1

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 '15 at 8:59
  • @Gwny, yes I am – testimon123 Aug 3 '15 at 10:04
3

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, privacy policy and cookie policy

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