Open Peter-Juhasz opened 1 day ago
Populating solution explorer is not a Roslyn issue. This sounds like CPS or msbuild issue.
Neither Visual Studio Solution Explorer (nor Code Search), (although files are available in the file system) nor Roslyn/IntelliSense picks up the changes after a git pull. I was not sure about the layering here, whether Roslyn access the file system directly or only via Visual Studio Project System, and since it is broken, the issue bubbles up.
We only know about the files the project system tells us about. It's for them ma msbuild to interpret the project file, and then determine if new files should now be included.
I've found a matching issue here: https://developercommunity.visualstudio.com/t/Visual-Studio-shows-outdated-errors-when/10761617
Although it has already got the infamous "Needs more info" state, I added a comment there referencing this issue.
Version Used: 17.12 P2.1 with no extensions enabled
Steps to Reproduce:
New files and added/changed members are not recognized:
The new files are not even visible in Solution Explorer, although they are there in the file system:
The project is a standard class library:
(Content of one of the missing files:)
(Code successfully compiles on the build server.)
Additional information
AccelerateBuildsInVisualStudio
is enabled.Workaround
This issue makes work quite difficult if more than 1 people work on a project.