We study (0,2) two-dimensional theories in type IIB configurations with D5 branes wrapping blow-up P1 cycles of deformed resolutions for An singularities or in T-dual IIA configurations with suspended D4 branes. We consider deformations of four dimensional N=2,∏i=1nU(Ni) theories with general superpotentials for the adjoint and bifundamental fields together with fundamental flavours and reduce to two dimensions on a two torus in the presence of magnetic fluxes and FI terms.