Share via


VS 2015 - How to show files excluded from project

Question

Tuesday, October 6, 2015 4:16 AM

I have excluded a few files from a VC++ project.  In VS 2015, the Show All Files button does NOT show the excluded files as it did in VS 2013. 

Does anybody know how to make VS 2015 show excluded files?

Thanks,

Jenny

All replies (4)

Wednesday, October 7, 2015 5:28 AM

Hi Jenny,

>>I have excluded a few files from a VC++ project.  In VS 2015, the Show All Files button does NOT show the excluded files as it did in VS 2013. 

How did you excluded your project files?

Like this case:

https://social.msdn.microsoft.com/Forums/vstudio/en-US/2ed987ea-901e-4d8c-b47a-78fd2936002d/exclude-a-file-from-the-project?forum=Vsexpressvb

Do you use the shortcut "Mark As Exclude( Shift + Delete )"?

For example, I test it in my VS2015, if I exclude the files, I could see them in the solution explorer window, and I could mark it as Unexclude using ( Ctrl + Insert ).

Or you mean that you use this option:

And then we couldn't see this file, but if we click "Share all files" like 1 in above screen shot, you would get it like the following screen shot, and then you could include it in your project.

I use the latest VS2015 Enterprise version, if it doesn't work in your side, maybe you could repair your VS, check it again. Or you could tell me the real VS version and Environment, I will test it in my side if you also could share me the detailed steps to repro this issue.

Best Regards,

Jack

We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.


Wednesday, October 7, 2015 5:57 AM

Hi Jack,

My Visual Studio 2015 for Windows Desktop has a version of 14.0.23107.0 D14REL, and 

.NET version 4.6.00079.

Steps to reproduce the issue:

1. Create a new VC++ win32 console project and add a few existing C++ files from a folder that contains a C++ files to the project.

2. 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. That is the excluded file is not listed with the red minus sign.

Thanks,

Jenny


Wednesday, October 7, 2015 7:37 AM

Hi Jenny,

I think I could repro this issue in my side using different VS2015 versions include yours.

It seems that this feature doesn't support the file refered from other project using "add existing item", I think like my previous steps, if you just exclude the .cpp file in your current project, it works well, am I right?

In addition, one workaround is that if I add the file to the solution folder, and then add this exiting item, it worked well using this feature.

 

Maybe you could submit a feedback here for this issue:

http://connect.microsoft.com/VisualStudio/feedback/CreateFeedback.aspx,Microsoft engineers will evaluate them seriously.

Best Regards,

Jack

We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.


Wednesday, October 24, 2018 3:52 PM

Just late to the party as usual, but I should note that if excluded content is lurking in the root folder of a web application, the debugger will try to load some of it. For example, page1.aspx may have been excluded, but an exception is thrown internally indicating that type page1 cannot be loaded. The way I made these all go away was to take all the excluded content and move it into a subfolder excluded_content, which I then excluded!

Now I get 0 exceptions for unable to load type on startup.

Allen