Got some nasty gnat filled potting soil WM brand and still bothered with them after using pest strips to catch millions! In my shop where I keep butterfly chrysalis or I would use spray.
I am going to take some vinegar down next time I head out. Good tip, bet it would attract them too.