Step 1: Choose the substitution
The integrand is $\dfrac{(x+1)}{x(1+xe^{x})^{2}}$. Since $\dfrac{d}{dx}(xe^{x})=(x+1)e^{x}$, let $t=xe^{x}$.
Step 2: Reduce and integrate
$\dfrac{x+1}{x}dx=\dfrac{(x+1)e^{x}}{xe^{x}}dx=\dfrac{dt}{t}$, so $I=\int\dfrac{dt}{t(1+t)^{2}}=\int\left[\dfrac{1}{t}-\dfrac{1}{1+t}-\dfrac{1}{(1+t)^{2}}\right]dt$.
This gives $\log\dfrac{t}{1+t}+\dfrac{1}{1+t}+C$.
Step 3: Check by differentiation
Differentiating $\log\dfrac{t}{1+t}+\dfrac{1}{1+t}$ with respect to $t$ gives $\dfrac{1}{t(1+t)}-\dfrac{1}{(1+t)^{2}}=\dfrac{1}{t(1+t)^{2}}$, so the result is correct and matches option (B).
Final Answer:
Option (B) is the correct antiderivative.
\[ \boxed{\text{(B) }\log \left(\dfrac{x\mathrm{e}^{x}}{1+x\mathrm{e}^{x}}\right)+\dfrac{1}{1+x\mathrm{e}^{x}}+C} \]