将菜单设置从一个项目复制到新项目与2010年 [英] Copy menu setup from one project to new project vs 2010

查看:62
本文介绍了将菜单设置从一个项目复制到新项目与2010年的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有





如何将菜单设置从一个项目复制到一个新项目。



我的项目已损坏,因此我需要将菜单从损坏的菜单复制到新菜单。





asp.net c#



我尝试过:



检查互联网并尝试了一些方法

Dear All


How do you copy the menu setup from one project to a new project.

My project is corrupted hence I need to copy the menu from the corrupted menu to a new.


asp.net c#

What I have tried:

checked the internet and tried some approach

推荐答案

简单方法?

简单:编辑myfilename.designer.cs文件并复制粘贴所有与菜单相关的代码都放入新项目设计器文件中的等效位置。然后只需从你的myfilename.cs文件中添加处理程序就可以了。你好了。

如果项目损坏所以你无法在VS中打开它,那么试试在记事本中这样做,但是你需要找出你的项目如何以及为何被破坏 - 或者它将再次发生在你的新项目中。此时备份是一个非常好的主意......
Easy way?
Simple: edit the myfilename.designer.cs file and copy and paste all the menu related code into the equivalent places in your new project designer file. Then just add the handlers from your myfilename.cs file and you should be good to go.
If the project is corrupt so you can't open it in VS, then try doing this in Notepad, but you need to find out how and why your project was corrupted - or it's just going to happen again to you new project. Backups are a very good idea at this point...


这篇关于将菜单设置从一个项目复制到新项目与2010年的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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