Visual Studio 2015 does not display project folder contents

Fixed by fixing VS2015 from the installation file.


I added the VS 2013 project to Visual Studio 2015. It compiles and runs as expected, but in the Explore solution I do not see the contents of the folder.

I tried deleting folders and adding them again, but that doesnโ€™t work.

Any ideas? I also use SourceTree for the project, but I donโ€™t think it matters.

[! [enter image description here] [1]] [1]

[1]: http://i.stack.imgur.com/Bhm3B.png

Edit 1: Note that these problems occur with all folders in the project (Resources, Themes, Sources)

1.) Files exist and are displayed in Windows Explorer

2.) Deleting and adding a folder again or individual files in a newly created folder will not change the situation.

3.) csproj has files that do not appear in 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> 
+4
source share
8 answers

Fixed by fixing VS2015 from the installation file.

+4
source

After adding the file to the desired folder. Click the Show all files button, include the file in the project. And what is he

+6
source

Files are probably not listed in the solution. Try right-clicking the folder in VS by selecting "Open in File Explorer" and then dragging the contents to the folder in VS. This should add them to the .sln file.

+5
source

Faced this problem with VS 2015 Community Edition and revealed that the problem arose due to one of the extensions ( Mexedge style extension in my case). After disabling this extension and restarting, the problem was resolved.

+2
source

I had the same problem. Repairing the installation did not help. Uninstall and a new installation did the job.

+1
source

If it is converted, then the file should be there. The solution file may have been updated and missed the link for this folder.

Try the following:

  • Right-click on the solution and upload it, then edit the solution (right-click and edit the solution), check the path to the file and determine whether it is correct or not.

  • Go to the project directory and check for files. If the files are there: update the solution and click to display the hidden files, and if you see them, add them to the solution.

  • If the files are not in the directory, add the existing file to the solution.

0
source

I had the same issue with VS2015. I do not know what caused this, but I decided (without reinstalling) with the proposed solution here .

Solution: Tools menu => Import and Export Settings ==> Reset All Settings => Next => Only Reset My Settings

0
source

There was this problem, but only on one specific project, where I could not see the files in the folders. If I opened another project, I could see its files that were in folders, so I knew that I had no problem with Visual Studio. Then I just rebuilt my project. Steps:

  • Visual Studio shutdown.
  • Moved my project to another folder (so that I can recreate the project with the old name)
  • VS launched. Created another project, such as my last, including all pages and folders.
  • I copied my old pages from my old Explorer folder on top of the pages of my new Project Explorer folder (Visual Studio recognizes the changes and asks you if you want to reload the content - say "Yes to all").
  • Copy classes from the old Explorer folder to the new one.
  • In VS, in Solution Explorer, right-click the folder that you created there, which is the explorer that you copied to the classes, in step 5, select "Add an existing item ..." and select all the classes (Ctrl + A, or hold Ctrl and click on the files) and click "Add."

You should go back to where the solution explorer can show your files again.

0
source

All Articles