Will this work for PvE solo and dungeon?
Sword rangers are actually preferred for dungeons. Sword is the highest DPS weapon on ranger.
I took a quick look at both builds and they both look generally fine. The staples of effective dungeon ranger builds these days are Mainhand Sword, Spotter, and Frost Spirit, which you have all of. Dungeons and PvE in general are pretty easy, so you can really do whatever makes you happy as long as your build isn’t too awful.
If you want a comparison, here is the optimal DPS ranger meta:
http://www.guildwars2guru.com/topic/84268-the-perfect-dps-ranger-guide-for-real/
Essentially, any deviation from that will be suboptimal damage, but again, given that PvE isn’t particularly difficult, moderate deviations will be okay. If you were planning to do speed runs though, you’d have to run the meta.
Another setup besides 30/25 is to run this:
Not quite optimal but it allowed me to learn how to effectively DPS as Sword/WH when I was first starting out. You can swap the traits and utilities as needed and swap the Scholar Runes for Ruby orbs if you’re tight on funds.