If you avoid stage fright, it only gets worse. In order to get rid of stage fright, you have to continue to expose yourself to performance situations. This may seem counterintuitive, but facing your fears in a gradual manner does help to decrease your anxiety when performing.
The following video outlines how stage fright develops, and how CBT (cognitive behavioral therapy) can help: