Click here to Skip to main content
15,885,870 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
While working on an ASP.NET MVC 4 application, I have a requirement to use one project in another project. For example: I have a project A and a project B. I need to use project B inside of project A.
Posted
Updated 29-Sep-15 20:12pm
v2
Comments
E.F. Nijboer 28-Sep-15 7:11am    
If it is just the layout page, as you say in the title, it isn't worth the trouble merging the projects in a single solution. How often does the layout change? Is normal communication impossible in the team? Easier to agree that changes in the common layout should always be done in one of the two layouts and the other will always be updated with the newer version.
[no name] 28-Sep-15 7:46am    
You two projects A and B. And you want to use B inside project A. Go to project A and right click on it. Choose Add Reference and refer to Project B.

Then add code "Using ProjectB;". Now you can access all the public methods inside Project A.
Member 11271026 28-Sep-15 8:35am    
How to redirect from project A to Project B views
public ActionResult login()
{
return RedirectToAction("Index", "Account");
}
John C Rayan 29-Sep-15 5:08am    
What is the requirement for using Proj A in Proj B. Why do you need two projects.
Member 11271026 29-Sep-15 9:44am    
Proj A is Main Project and Project B is separate module in the applicaiton and we want to communication(request and response) between two project and share layout page between these two project.

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900