我如何......一次使用两个项目 [英] How do I...Use two projects at a time

查看:85
本文介绍了我如何......一次使用两个项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将两个项目用作一个单独的项目,一个在mvc3.0中,另一个在asp.net c#中。

我想访问其他项目中的一个项目的页面

解决方案

如果你试图谈论Visual Studio,那么是的,它允许两个项目(无论不同的框架; MVC,WPF,控制台)在一个解决方案下同时打开您的工作。



您可以右键单击解决方案,然后单击添加,然后在菜单下。选择您想要的,新项目,现有项目和其他选项已经可用。 Visual Studio会毫不犹豫地要求添加特定项目,您可以添加任何类型的项目(Web或软件,WPF或Win Forms)。然后您可以随时使用它们,您可以从两个项目中打开文件。您还可以添加对任一项目的名称空间的引用。



如果您在同一解决方案下有两个项目,则需要将其中一个项目添加为启动项目这是必需的


参考这个



http://stackoverflow.com/questions/2203411/combine-asp-net-mvc-with-webforms [<一个href =http://stackoverflow.com/questions/2203411/combine-asp-net-mvc-with-webforms\"target =_ blanktitle =新窗口> ^ ]



http://www.asp.net/aspnet/overview/whats-new-in-visual-studio-2013/one-aspnet-integrating-aspnet-web-表格,-mvc-and-web-api [ ^ ]


如何调用页面一个项目到另一个页面示例:第一个项目的默认页面到第二个项目的主页

How to use two projects as one single project one is in mvc3.0 and other is in asp.net c#.
I want to access pages of one project on other project

解决方案

If you were trying to talk about Visual Studio, then yes, it allows two projects (No matter of different framework; MVC, WPF, Console) open simultaneously under a single Solution for your work.

You can right click on Solution and click Add, and under the menu. Chose the one you want to, New Project, Existing Project and other options are already available. Visual Studio won't hesitate to ask for a specific project to be added, you can add any kind of project (Web or software, WPF or Win Forms). Then you can use them anytime, you can open files from both projects. You can also add references to namespaces of either projects then.

If you're having two projects under same solution, you would require to add either one of them as a Start up project. This is required.


Refer this

http://stackoverflow.com/questions/2203411/combine-asp-net-mvc-with-webforms[^]

http://www.asp.net/aspnet/overview/whats-new-in-visual-studio-2013/one-aspnet-integrating-aspnet-web-forms,-mvc-and-web-api[^]


how to call page of one project to another page example: default page of 1st project into home page of 2nd project


这篇关于我如何......一次使用两个项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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