关于VS2008_VS2010的问题,请帮帮我吗? [英] Probelem about VS2008_VS2010 , please help me ?

查看:70
本文介绍了关于VS2008_VS2010的问题,请帮帮我吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在计算机上安装了VS2008和VS2010,我的所有程序都是用VS2008编写的....有两个问题

1_当我想打开我的项目(写为VS2008)时,无法加载表单,并且遇到一条消息,消息是:对象可能未引用an ......

2_我无法在另一台PC(安装了VS2008)上打开我的项目(安装了VS2008的项目)..当我想打开它们(源代码)时,什么都不会显示...并且我再次遇到有关csproj的消息....


请帮助我...我必须分享我的项目,并根据我所涉及的情况,不能向任何人展示我的任何项目t(源代码).

[edit]虚假粗体已删除-OriginalGriff [/edit]

i have VS2008 and VS2010 installed on my computer , all of my program has written with VS2008....there''s 2 problem

1_ when i want open my project (written VS2008) , the forms cant be loaded and i encounter a message that it is : object may not reference to an......

2_ i cant open none of my project (that VS2008 installed on) in the another PC(VS2008 installed on ) ..when i wanna open them (source code) nothing will shown ...and i encounter a message again that is about csproj....


please help me ... I have to share my project , with the situation i have involved in , I cant show any of my project t(source code) to no body .

[edit]Spurious bold removed - OriginalGriff[/edit]

推荐答案

问题可能是您的表单或用户控件之一从一开始就做错了-在构造函数中最有可能. VS尝试将其加载到设计器中,但失败了-导致VS问题和加载困难.

尝试以下操作:创建一个新项目.从旧项目中添加一个文件.建造.关闭解决方案,然后重新打开它.继续添加文件,直到失败.然后,您知道是哪个问题.使用文本编辑器打开该文件(使用记事本即可),然后注释我们的构造函数代码.然后,您应该能够加载原始项目,并在代码中解决问题.
The problem is probably that one of your forms or user controls is doing something wrong right from the start - in the constructor most likely. VS tries to laod it into the designer, and it fails - that causes a problem with VS and your difficulties loading.

Try this: create a new project. Add one file from your old project. Build. Close the solution, and re-open it. Continue to add files until it fails. You then know which one is the problem. Open that using a text editor (notepad is fine) and comment our the constructor code. Your should then be able to load your original project, and sort out your problem in the code.


这篇关于关于VS2008_VS2010的问题,请帮帮我吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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