We often encounter aspx and aspx after the conversion web project. CS is a parallel display, rather than clicking the plus sign before aspx to display Aspx. CS, although it does not affect the function, it is always uncomfortable. searched,
Directly modify the project file. csproj and find the definition of files such as Aspx. CS, as follows:
<Compile include = "test. aspx. cs">
<Subtype> aspxcodebehind </subtype>
</Compile>
Add a subnode to the compile node: <dependentupon> test. aspx </dependentupon>. The final result is as follows:
<Compile include = "test. aspx. cs">
<Subtype> aspxcodebehind </subtype>
<Dependentupon> test. aspx </dependentupon>
</Compile>
Re-load the project. If the amount is large, you can consider writing ProgramProcess csproj, but it is best to back up the csprojc file first.
Another simpler method is to create a new project and put aspx and Aspx. the CS file is copied to the project at the same time. At this time, the project Automatically Establishes a correspondence relationship based on the file name, saving the trouble of manual modification.