There is a way to import an existing automation script and create a VS solution:
- In VS, create a new Automation Script solution but uncheck the option, "Create an initial automation Script". This will create a VS solution without any project.
- In the DIS, select the option Connect (DIS->DMA->Connect->connection) and wait a few seconds to then use the option to import an existing automation script (DIS->DMA->Import Automation Script...)
- After selecting the script, a message will allow you to add the imported script in to the current solution as a new project:
- A new VS project is added and the automation XML is converted into a solution project.
Depending on the automation script, you may need to adjust references to other libraries, but at this point you should have a solution to add the source control.
I quickly validated this using DIS 18.104.22.168