Form and designer files not linking in Solution Explorer

后端 未结 5 528
礼貌的吻别
礼貌的吻别 2020-12-15 18:21

I can\'t seem to get the form and the designer files to link in my project. They look like this in the Solution Explorer.

5条回答
  •  醉梦人生
    2020-12-15 18:38

    I've seen the same problem in Visual Studio 2008. Usually after compiling or closing and re-opening the solution the problem would fix itself. In Visual Studio 2012 I know that I have problems if I try to Add > Existing Item and choose all three files. Typically you only want to add the top level form.cs and VS will automatically include the .designer.cs and .resx files.

提交回复
热议问题