要麼手動編輯項目文件或使用這個漂亮的Visual Studio擴展的:
手動關鍵是要編輯的項目文件,並添加DependentUpon
元數據到每個文件要展示嵌套:
<ItemGroup>
<!-- This will cause Visual Studio to show the file under Foo.1.cs -->
<Compile Include="Foo.1.1.cs">
<DependentUpon>Foo.1.cs</DependentUpon>
</Compile>
<!-- This will cause Visual Studio to show the file under Foo.cs -->
<Compile Include="Foo.1.cs">
<DependentUpon>Foo.cs</DependentUpon>
</Compile>
<Compile Include="Foo.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
來源:
非常好的插件,謝謝! – Flignats