6

Possible Duplicate:
Undo VS 'Exclude from project'?

I mistakenly chose the Exclude From Project menu item thinking I could choose what to exclude but it excluded the currently opened file.

I did not notice what file that was and there is no undo enabled.

How can I undo this operation? How can I detect what file was excluded? Is there some kind of log file?

Community
  • 1
  • 1
WilliamKF
  • 41,123
  • 68
  • 193
  • 295
  • I guess it is not under revision control, right? – David Alber Nov 29 '11 at 03:09
  • Yes, it is imported port of large code base under smartSVN. Which of the many files was inadvertently removed from the project build? – WilliamKF Nov 29 '11 at 03:18
  • 1
    Is the project file under revision control? You should be able to see what has changed in your working copy. That said, I _think_ the project file is not saved until you build (or do something of a similar nature). If that describes your situation, closing Visual Studio may get you a dialog that asks if you want to save the project file. – David Alber Nov 29 '11 at 03:22

1 Answers1

4

Choose "Add > Existing Item..." then add the files you have excluded

culithay
  • 305
  • 1
  • 8
  • 1
    From the question: "I did not notice what file that was..." – David Alber Nov 29 '11 at 03:03
  • 4
    Click Second icon "Show All files" From the Top Left of Solution Explorer Window. You win see. – culithay Nov 29 '11 at 03:12
  • 13
    DO NOT FOLLOW THIS ANSWER On the top of the Solutions Explorer there is a "view all files" option... click that button. Then right click the objects and select include in project. – Preston Feb 09 '13 at 19:53
  • 2
    can you explain why not use the above option I think both the approaches achieves the same result. – Krishna Oza Feb 15 '14 at 06:45