You'll want to work in the the Torque2D solution file (Torque2D.sln I believe) in the engine/compilers/Visual Studio 2017 directory. You'll be adding any engine changes you need into that project and compiling the engine from there which will create the T2D exe file. Scripting and gameplay code will go in the modules directory.