Hi Dojo,
I am using the Visual Studio DIS extension to develop a protocol and also automation scripts. Adding the protocol Solution to source control (Git) was easy, the structure is easy to understand and every QAction has a cs and a csproj file.
But the Automation Script solution has way more files and I don't know which files I need to add. I imported multiple Automation Scripts to the VS Solution. Do i also need to add the bin and obj folder which every Automation Script has? I guess not, but how did you do that? I did not find anything in the documentation.
Thanks
David
Hi David,
You should be able to just add all files in the folder of your solution and (git) ignore the folders which are not needed (like bin and obj).
A 'dotnet new gitignore' command at the root of your repository should do the trick.
Hi David
When adding the solution to Git, you can add a gitignore file. You can use the default gitignore for Visual Studio: gitignore/VisualStudio.gitignore at main · github/gitignore
Thanks Robbe for your quick answer.
Ignoring files is easy, but I wanted to know which files I can ignore or which files need to be added. I will ignore bin and obj folders and only add the cs and csproj file of the Automation scripts and some other files and folders. So the commited structure should be like this (example script names):
AutomationScript1/
AutomationScript1/AutomationScript1.cs
AutomationScript1/AutomationScript1.csproj
AutomationScript2/
AutomationScript2/AutomationScript2.cs
AutomationScript2/AutomationScript2.csproj
CompanionFiles/**
Dlls/ABOUT
Documentation/ABOUT
Internal/**
AutomationScript1.xml
AutomationScript2.xml
AutomationScripts.sln
Directory.Build.props
README
But I can test it also by checkout the repo to another folder and open it to know if any other person is able to open the solution without the ignored files.