假如我新建一個(gè)a.cs文件和一個(gè)a.cs.js文件,如何在解決方案管理器中讓a.cs.js自動(dòng)折疊在a.cs文件下面?具體效果要求類似a.aspx能夠折疊a.aspx.cs和a.aspx.designer.cs那樣
2 回答

慕森王
TA貢獻(xiàn)1777條經(jīng)驗(yàn) 獲得超3個(gè)贊
修改.csproj文件,類似下面的,其實(shí)就是DependentUpon
<Compile Include="Implement\MallAttributeService.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Implement\MallAttributeService.gen.cs">
<DependentUpon>MallAttributeService.cs</DependentUpon>
<SubType>Code</SubType>
</Compile>
- 2 回答
- 0 關(guān)注
- 650 瀏覽
添加回答
舉報(bào)
0/150
提交
取消