在Microsoft Visual Studio 2008 SP1中将两个解决方案(* .sln)组合为一个sln [英] Combining Two Solutions (*.sln) as one sln in Microsoft Visual Studio 2008 SP1

查看:223
本文介绍了在Microsoft Visual Studio 2008 SP1中将两个解决方案(* .sln)组合为一个sln的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的

我正在寻找将两个解决方案(* .sln)组合为Microsoft Visual Studio 2008 SP1中的一个sln.

I am looking for Combining Two Solutions (*.sln) as one sln in Microsoft Visual Studio 2008 SP1.

最好的问候

推荐答案

组合项目非常简单.您可以使用菜单:项目:添加现有项目.不要尝试编辑sln文件.

It is very simple to combine projects.  You use the menu : Project : Add existing itemes.  Don't try to edit the sln file.

1)创建一个新项目,或使用类似的步骤将一个项目合并到另一个项目中

1) Create a new Project, or combine one project into another project by using a similar procedure

2) 从菜单中打开解决方案资源管理器:视图-解决方案资源管理器

2) Open Solution Explorer from menu  : View - Solution Explorer

3) 显示的文件(vb或cs)位于sln文件所在的子文件夹中.使用Window Explorer将文件从现有项目复制到新项目.表单上的源文件将包含资源 文件(resx).

3) The files shown (vb or cs) are in the sub folder below where the sln file is located.  Copy source files from the existing projects to the new project using a Window Explorer.  The source files on a form will include the resource file (resx). 

4)在新项目中,使用菜单:项目:添加现有项目.对于表单,请添加资源文件,而不要添加cs或vb文件.它们将被自动添加.

4) In the new project use the menu : Project : Add Existing items.  For a form add the resource file and not the cs or vb file.  They will automatically be added.

5)接下来,您必须将引用添加到新的名称空间.使用VBnet,您将在模块顶部放置一个导入"按钮.带有添加模块名称空间的语句.对于C#,这将是使用"操作.声明.

5) You next have to add the reference to the new namespaces.  With VBnet you will put at the top of the module a "Import" statement with the namespace of the added modules.  with C# it would be a "using" statement.

6)然后重新编译整个项目.

6) Then recompile the entire project.


这篇关于在Microsoft Visual Studio 2008 SP1中将两个解决方案(* .sln)组合为一个sln的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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