<Compile Include="..\Admin\Actions.aspx.cs">
      <DependentUpon>Actions.aspx</DependentUpon>
        <SubType>ASPXCodeBehind</SubType>
    </Compile>
    <Compile Include="..\Admin\Actions.aspx.designer.cs">
      <DependentUpon>Actions.aspx</DependentUpon>
        <SubType>ASPXCodeBehind</SubType>
    </Compile>

csproj项目文件中,形成这样的代码,重要的是<DependentUpon>这一节,如果没有它,在VS中就不会形成级联关系,而是并列。

如果没有designer.cs文件,最直接的效果就是在cs中右键时没有“查看设计器”。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-08
  • 2021-07-28
  • 2021-11-11
  • 2021-11-27
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-04
相关资源
相似解决方案