windows form 跟 usercontrol 都變成cs檔 無法點擊進入設計模式

[個人紀錄] windows form , usercontrol design 模式不見 随笔 第1张

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

 

<Compile Include="Form1.cs"/>
<Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon>
</Compile>

 

[個人紀錄] windows form , usercontrol design 模式不見 随笔 第2张

<Compile Include="SiteStatus.cs"/>
<Compile Include="SiteStatus.designer.cs">
<DependentUpon>SiteStatus.cs</DependentUpon>
</Compile>

 

修正 .csproj 專案檔

<Compile Include="Form1.cs">
    <SubType>Form</SubType>
</Compile>
<Compile Include="Form1.Designer.cs">
    <DependentUpon>Form1.cs</DependentUpon>
</Compile>

 

<Compile Include="SiteStatus.cs">
    <SubType>UserControl</SubType>
</Compile>
<Compile Include="SiteStatus.designer.cs">
    <DependentUpon>SiteStatus.cs</DependentUpon>
</Compile>

 

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄