You may have noticed that there are files and folders on the file system that are not reflected in the project. This is because Test Design Studio allows
you to individually include and exclude files from your project. For instance, the project sub-folder
Code Snippets exists on the file system, but
there is not a Code Snippets folder within the project. You may now close or minimize the Windows Explorer
window if you no longer wish to browse the file system. To see the excluded files and folders in Solution Explorer,
we toggle on the Show All Files feature for the project. In Solution Explorer, select the project
or one of its files or folders. Then select Show All Files from the Project menu or click the Show All Files
toolbar button on Solution Explorer. You can repeat this step to toggle the Show All Files feature back off,
but leave it on for now.
Your view in Solution Explorer will now be updated to reveal the excluded files and folders. You will notice that excluded items (such as the Code Snippets folder) are indicated by a hollow icon with a dashed border.
We now want to include some files in our project that were previously excluded. Locate and expand the excluded Code Snippets folder. This folder contains a file called
SnippetDir.xml and a sub-folder called Property Declarations that contains files with the
.snippet extension. We want to include all of these
files in our project. We could choose to include each file individually, but this could become tedious if there are many files. Instead, we will include the Code Snippets folder directly.
By including the folder, all files and sub-folders of that folder will also be included. Right-click on the Code Snippets folder (#1 in the image below) and select Include in Project from the context menu (#2 in the image below).
You will now see the icons for the folder and files updated to reflect their inclusion.
When we included the Code Snippets folder, you may have noticed that we also included the SnippetDir.xml file in our project as well. This file provides details about the code snippet files, but is not particularly useful for our project.
We want to hide this file by excluding it from our project. We exclude files in same manner used to include them. Right-click on SnipperDir.xml file and select Exclude from Project on the context menu. You will
notice that the icon has shifted back to an outline of a file which indicates it is hidden. Now that we have found and included our
.snippet files, hide the remaining excluded files from Solution Explorer by toggling off the
Show All Files feature from the Project menu or Solution Explorer toolbar.
Note: The Show All Files feature is tracked on a per-project basis. If you have multiple projects in the same solution, toggling this feature will only impact the selected project.
Tip: We could have included our
snippetfiles without including the SnippetDir.xml file by including the Property Declarations folder in our project instead of the Code Snippets folder. This would have included all the snippets files located under the Property Declarations folder and also would have included the Code Snippets folder since it was the parent folder. Since the Code Snippets folder was only included as the parent of the folder we selected, it would not have automatically included the SnippetDir.xml file that was located beneath it.