locked
Shared code between plugins RRS feed

  • Question

  • Hi,

    I am using mscrm 4.0 and .net 3.5

    I am writing 2 plugins at the moment, they are in the same project/assembly.  They require similar methods. 

    Can i create a standard c# class (this will be in the same plugin assembly) and put my common methods in there, and then reference this class from both plugins?

    Or does all of the code need to be in each of the activity class, so each plugin is totally self sufficient?

    Thanks

     

     


    Saturday, August 27, 2011 2:52 PM

Answers

  • You can use a separate c# class. Do not use global variables!
    • Proposed as answer by Jan AS Saturday, August 27, 2011 3:02 PM
    • Marked as answer by MrKevorkian Saturday, August 27, 2011 3:08 PM
    Saturday, August 27, 2011 3:02 PM

All replies

  • You can use a separate c# class. Do not use global variables!
    • Proposed as answer by Jan AS Saturday, August 27, 2011 3:02 PM
    • Marked as answer by MrKevorkian Saturday, August 27, 2011 3:08 PM
    Saturday, August 27, 2011 3:02 PM
  • Thanks!

     

    Saturday, August 27, 2011 3:08 PM