I excluded a file from source control a week ago, and I would like to re-include it into my VS 2010 project.
I can't find a single way to do this, I am completely stumped. I deleted the file, checked everything in, then re-added, checked that in, but I still get the red symbol next to the file saying it is excluded from source control.
Ironically, when I right-click the file, it gives me the option to Exclude it, but not to include again.
Help!
For a directory: select this option to exclude from compilation all the corresponding subdirectories. Use this icon or shortcut to add a file or directory to the list. Select the file or directory in the dialog that opens. Use this icon or shortcut to remove the selected item or items from the list.
Right click one of the files and select " Exclude from project", and the file disappears from the project. 3. Click "Show All Files" button on top of Solution Explorer to show all files, but the excluded file is not shown at all.
If you have a local workspace, you can add a new file and in the bottom of the pending changes window you have the changes you can 'promote'. In that window, you can right click the files to automatically add them to a . tfignore file that will be created for you.
Steps to follow:
Select the appropriate file to reinclude.
Go to File -> Source Control -> Uncheck 'Exclude -FileName- from Source Control'.
Greetz
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With