Why doesn't Visual Studio refresh the folders when I click the Solution Explorer refresh button?

ぐ巨炮叔叔 提交于 2019-11-29 22:47:30

At the top of the solution explorer is a toggle button "Show All Files" this makes it include all files in the display even if they aren't included in the project. The icons for these will be grayed out a bit. Then just use the context menu to add these to the project.

On the solution, click the right mouse button and select 'Add existing item' and pick the file from the solution root directory. The Solution will now get a 'Solution Items' directory which contains your file. This directory is virtual, so it does not exist on disk.

However there is no feature like 'Show All Files' for a solution, this only works on projects.

S S

I faced the same issue. I added new files and folders but the next time I took latest source code from SVN and then opened the project, it wont show the files which were added.

You can perform the following steps : 1. Solution explorer -> Show all files 2. Those files which are added recently will be displayed without the [@] icon on left side. Right click on the file and Select Include in the project 3. If you see the config file Web (Visual C# Project file (.csproj)) under Web folder, you will see the entries made for these new files. Check in this config file in your svn. 4. The next time you take repo checkout , it wont be an issue as the file details have been added into the configuration.

Hope this helps.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!