通过从安装文件修复VS2015进行修复。
我已经在Visual Studio 2015中添加了一个VS 2013项目。它可以按预期进行编译和运行,但是在Solution Explorer中我看不到文件夹的内容。
我尝试删除文件夹并再次添加它们,但是没有用。
有任何想法吗?我也将SourceTree用于该项目,但我认为这无关紧要。
[![在此处输入图片描述] [1]] [1]
[1]:http://i.stack.imgur.com/Bhm3B.png
编辑1:请注意,此问题发生在项目中的所有文件夹(资源,主题,源)
1.)文件存在并且在Windows资源管理器中可见
2.)再次删除和添加文件夹,或者新创建的文件夹中的单个文件不会改变情况。
3.)csproj的文件未在文件夹中显示:
<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>
通过从安装文件修复VS2015进行修复。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句