删除\obj文件夹后丢失表单设计器 [英] Lost Form Designer after remove \obj folder

查看:103
本文介绍了删除\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


这篇关于删除\obj文件夹后丢失表单设计器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆