Using Indigo and a managed build C++ project, I right-clicked on a source file and selected Resource Configurations->Exclude From Build...
, and the file promptly disappears. Scrolling down shows it at the bottom of the list of source files with a new dimmed icon. Now how do I get it back? The Reset to Default...
option is always dimmed out. Right-clicking on the excluded file still only shows the Exclude From Build...
option. Is there an Include in Build
option somewhere? I realize I can go to .cproject file and manually edit it back in but I figure there must be a way to do it from the IDE.
问题:
回答1:
In eclipse there's not a similar way to reinclude resource, like:
- Resource Configuration -> Reinclude from build
You need to go in Project Proprerties (Alt+Enter) and go:
C/C++ General -> Paths and Symbols
Select tab
Source Location
and expand your project's folder: here you can select filter that you want to remove and click on "Edit Filter" and then "Remove".
回答2:
Yes this is an old question. But people do go looking for answers years later..
There's an easy way, but it's counter intuitive. Right click the excluded item, select "exclude from build", and on the dialog that appears, uncheck the builds for which you'd like the item back. Note the convenient 'Deselect All' button.
回答3:
While I still don't know how get back a file that's been excluded. I have discovered that it's much better to just add a new folder, and then mark the folder as excluded. Then files can be excluded by dragging them into this folder and included back by dragging them back to the original folder.