我应该在一个解决方案中将MVC 5和Web API 2用作不同的项目吗? [英] Shall I use MVC 5 and web API 2 as a different project in one solution?

查看:118
本文介绍了我应该在一个解决方案中将MVC 5和Web API 2用作不同的项目吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi Team,



我正在创建Web应用程序并计划使用以下Microsoft技术。

请让我知道您的答案。



在ASP.NET MVC5中创建一个应用程序,并在WebAPI中编写一个restful服务。在Web应用程序中使用该服务。本案例网站和服务将采用不同的解决方案。

请让我知道您的建议。在此先感谢。



问候,

Surendar



我尝试了什么:



有这个想法在我的网站上实现

Hi Team,

I am creating web applications and planning to use following Microsoft technologies.
Please let me know your answer.

Create an application in ASP.NET MVC5 and write a restful service in WebAPI. Consume the service in a web application. This case web and service will be in different solution.
Please let me know your suggestions. Thanks in advance.

Regards,
Surendar

What I have tried:

Having this idea to implement in my web

推荐答案

是的,您应该将两件事放在同一解决方案中的两个独立项目中。
Yes you should put the two things in two separate projects in the same solution.


这篇关于我应该在一个解决方案中将MVC 5和Web API 2用作不同的项目吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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