A good thing to do is think up a simple melody first. Then do variations of that melody, add fills, runs up and down to that melody, or any little trick you see your fav guitarist using. The techniques will fill in the gaps here. Take a sequence like a tapping one, and do it up and down the neck with only slight variations as an example. Also depending on how long the solo is you may need to think up more than one melody: The longer it is the more melodies and hooks you need. But for each phrase, a good start is to think melodically first. Melodies are what catch the listeners ear.
Learn solos on other instruments as well. Sax, violin, piano, anything you can get you hands on.
"My whole life is a dark room...ONE BIG DARK ROOM" - a.f.i.