Certain things need to be known first. Has the PCB been already designed properly, or you are working on a general purpose board? Are you using MOSFET or a general bipolar transistor? What is the switching frequency you are working on?
Many precautions are there to be taken depending on the answers to these questions.