Visual Studio 2015 not showing project folder content
Solution 1
Fixed by Repairing the VS2015 from the setup file.
Solution 2
After adding the file to the correct folder. Click on the Show all Files option, include the file in the project. And that's it
Solution 3
The files are probably not listed in the solution. Try right-clicking the folder in VS, selecting 'Open in File Explorer', then dragging the contents onto the folder in VS. This should add them to the .sln file.
Solution 4
Faced this problem with VS 2015 Community Edition and identified the problem happened due to one of the extensions (Mexedge Stylesheet extension in my case). After disabling this extension and restarting, the problem was resolved.
Solution 5
I had the same problem. Repair of installation did not help. Uninstallation and new installation did the work.
George Geoker
Updated on July 09, 2022Comments
-
George Geoker almost 2 years
Fixed by Repairing the VS2015 from the setup file.
I've added a VS 2013 project to Visual Studio 2015. It compiles and runs as expected, but in Solution Explore i can't see the content of the folders.
I've tried deleting the folders and adding them again, but it didn't work.
Any ideas? I also use SourceTree for the project, but i don't think it's relevant.
[![enter image description here][1]][1]
[1]: http://i.stack.imgur.com/Bhm3B.png
Edit 1: Please note that this issues happens to all the folders in the project (Resourfes, Themes, Sources)
1.) The files exist and are visible in Windows Explorer
2.) Deleting and adding the folder again, or the individual files in a newly created folder does not change the situation.
3.) csproj has the files that are not show in the folders :
<ItemGroup> <ApplicationDefinition Include="App.xaml"> <Generator>MSBuild:Compile</Generator> <SubType>Designer</SubType> </ApplicationDefinition> <Compile Include="Sources\LoginViewModel.cs" /> <Compile Include="Sources\RelayCommand.cs" /> <Compile Include="Sources\ViewModel.cs" /> <Compile Include="Login.xaml.cs"> <DependentUpon>Login.xaml</DependentUpon> </Compile> <Compile Include="WrongPassword.xaml.cs"> <DependentUpon>WrongPassword.xaml</DependentUpon> </Compile> <Page Include="MainWindow.xaml"> <Generator>MSBuild:Compile</Generator> <SubType>Designer</SubType> </Page> <Compile Include="App.xaml.cs"> <DependentUpon>App.xaml</DependentUpon> <SubType>Code</SubType> </Compile> <Compile Include="MainWindow.xaml.cs"> <DependentUpon>MainWindow.xaml</DependentUpon> <SubType>Code</SubType> </Compile> <Page Include="Resources\Icons.xaml"> <Generator>MSBuild:Compile</Generator> <SubType>Designer</SubType> </Page> <Page Include="Themes\Metro\Dark\MetroDark.MSControls.Core.Implicit.xaml"> <Generator>MSBuild:Compile</Generator> <SubType>Designer</SubType> </Page> <Page Include="Themes\Metro\Dark\MetroDark.MSControls.Toolkit.Implicit.xaml"> <Generator>MSBuild:Compile</Generator> <SubType>Designer</SubType> </Page> <Page Include="Themes\Metro\Dark\Styles.Shared.xaml"> <Generator>MSBuild:Compile</Generator> <SubType>Designer</SubType> </Page> <Page Include="Themes\Metro\Dark\Styles.WPF.xaml"> <Generator>MSBuild:Compile</Generator> <SubType>Designer</SubType> </Page> <Page Include="Themes\Metro\Dark\Theme.Colors.xaml"> <Generator>MSBuild:Compile</Generator> <SubType>Designer</SubType> </Page> <Page Include="Themes\Metro\Light\Metro.MSControls.Core.Implicit.xaml"> <Generator>MSBuild:Compile</Generator> <SubType>Designer</SubType> </Page> <Page Include="Themes\Metro\Light\Metro.MSControls.Toolkit.Implicit.xaml"> <Generator>MSBuild:Compile</Generator> <SubType>Designer</SubType> </Page> <Page Include="Themes\Metro\Light\Styles.Shared.xaml"> <Generator>MSBuild:Compile</Generator> <SubType>Designer</SubType> </Page> <Page Include="Themes\Metro\Light\Styles.WPF.xaml"> <Generator>MSBuild:Compile</Generator> <SubType>Designer</SubType> </Page> <Page Include="Themes\Metro\Light\Theme.Colors.xaml"> <Generator>MSBuild:Compile</Generator> <SubType>Designer</SubType> </Page> <Page Include="Login.xaml"> <SubType>Designer</SubType> <Generator>MSBuild:Compile</Generator> </Page> <Page Include="WrongPassword.xaml"> <SubType>Designer</SubType> <Generator>MSBuild:Compile</Generator> </Page> </ItemGroup>