删除\obj文件夹后丢失表单设计器

问题描述:

在签入之前,我删除了C#项目中的\obj和\ bin文件夹。

Prior to check in, I removed \obj and \bin folder in my C# project.

如果我尝试打开项目,表单设计器没有打开但是显示XML。

If I try to open project, form designer is not opened but shows XML.

如果我从备份文件夹中恢复\obj文件夹,则会显示表单设计器。

If I restore \obj folder from the backup folder, form designer is shown.

我试图找出原因但是失败。

I tried to find out the reason but failed.

任何人都可以给我任何建议吗?

Can anybody give me any advice?

PS我正在使用Visual Studio 2005。

P.S. I'm using Visual Studio 2005.

您好Jeff0803,

Hi Jeff0803,


"bin"用于存储编译结果。并且"obj"用于存储编译期间生成的中间临时文件。如果删除项目目录中的这两个文件夹,编译器将在您打开项目时自动创建两个
新的空文件夹。顺便说一句,在我的测试中,表单设计者不会丢失。

The "bin" is used to store the compiled results. And "obj" is used to store intermediate temporary files generated during compilation. If you delete these two folders in the project directory, the compiler will automatically create two new empty folders when you open the project. By the way, in my test ,the Form designer does not lost.

根据您提供的信息,我无法重现您的问题。所以如果你能提供整个项目会更好。

Just base on the information you provide, I could not reproduce your issue. So it would be better if you can provide the whole project.

问候,

Kyle