恢复项目 [英] recovering a project

查看:95
本文介绍了恢复项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在201 Visual Studio环境中使用New Project开始创建我的第一个Forms项目。 然后发生了一些事情,当我使用projectname.sln文件打开项目时,它只加载projectname.designer.vb文件,并且不会将表单或VB代码打开
到VS环境中。 如果我直接打开Windowsprojectname.exe文件,则会打开表单。  我直接打开projectname.vb文件,我有我的VB代码。


如何让我的项目运行?


我可以开始一个新项目并导入几个文件吗?


我是否不得不通过单独使用表单设计器来重新创建表单?


解决方案

您好jimlamb1944,


感谢您在MSDN论坛上发帖。


>>> 然后发生了一些事情,当我使用projectname.sln文件打开项目时,它只加载projectname.designer.vb文件,并且不会将表单或VB代码打开到VS环境中。 / p>

是否要加载projectname.vb文件或此文件有错误?你能不能 请检查projectname.vb文件是否存在于项目文件夹中?如果是,请确保projectname.vb和projectname.designer.vb的结构正确,
projectname.designer.vb文件应该依赖于projectname.vb文件。您可以卸载项目并编辑.vbproj,在.vbproj中找到以下代码:


 

从projectname.designer.vb恢复Form项目非常困难。因为在UI设计之后会自动生成projectname.designer.vb。因此,如果要恢复项目,最合适的恢复方法是确保
projectname.vb文件存在并且具有projectname.designer.vb文件的正确构造。


除此之外,您使用的是哪个版本的Visual Studio环境?你问题中的描述不完整。


I started creating my first Forms project using New Project in the 201 Visual Studio environment.  Then something happened, and when I opened the project using the projectname.sln file, it only loads the projectname.designer.vb file and does not open the form or the VB code into the VS environment.  If I directly open the Windowsprojectname.exe file, the form opens.   I directly open the projectname.vb file, I have my VB code.

How can I get my project running?

Can I start a new project and import several files?

Am I compelled to recreate my form piece by pieceusuing the Form Designer?

解决方案

Hi jimlamb1944,

Thank you for posting in the MSDN forum.

>>> Then something happened, and when I opened the project using the projectname.sln file, it only loads the projectname.designer.vb file and does not open the form or the VB code into the VS environment.

Does the projectname.vb file be loaded or any error on this file? Could you  please check the projectname.vb file whether existed in the project folder? If yes, make sure the structure of the projectname.vb and projectname.designer.vb is correct, the projectname.designer.vb file should be dependent upon the projectname.vb file. You can unload you project and edit the .vbproj, found the below code in the .vbproj:

 
It`s quite difficult to recover the Form project from the projectname.designer.vb. Because the projectname.designer.vb is generated automatically after the UI design. So if you want to recover your project, the most appropriate recover method is make sure the projectname.vb file existing and have a correct construction with projectname.designer.vb file.

Beside, which version of Visual Studio environment you are using? The incomplete describe 201 in your question.


这篇关于恢复项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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